~smartboyhw/ubuntu/raring/calligra/2.6.0-0ubuntu1

« back to all changes in this revision

Viewing changes to stage/part/KPrShapeApplicationData.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-10-23 21:09:16 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20121023210916-m82w6zxnxhaxz7va
Tags: 1:2.5.90-0ubuntu1
* New upstream alpha release (LP: #1070436)
  - Add libkactivities-dev and libopenimageio-dev to build-depends
  - Add kubuntu_build_calligraactive.diff to build calligraactive by default
  - Add package for calligraauthor and move files that are shared between
    calligrawords and calligraauthor to calligrawords-common
* Document the patches
* Remove numbers from patches so they follow the same naming scheme as
  the rest of our patches.
* calligra-data breaks replaces krita-data (<< 1:2.5.3) (LP: #1071686)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "animations/KPrShapeAnimation.h"
24
24
 
25
25
KPrShapeApplicationData::KPrShapeApplicationData()
 
26
    : m_deleteAnimations(false)
26
27
{
27
28
}
28
29
 
29
30
KPrShapeApplicationData::~KPrShapeApplicationData()
30
31
{
31
 
    qDeleteAll( m_animations );
 
32
    if (m_deleteAnimations) {
 
33
        qDeleteAll(m_animations);
 
34
    }
32
35
}
33
36
 
34
37
QSet<KPrShapeAnimation *> & KPrShapeApplicationData::animations()
35
38
{
36
39
    return m_animations;
37
40
}
 
41
 
 
42
void KPrShapeApplicationData::setDeleteAnimations(bool enabled)
 
43
{
 
44
    m_deleteAnimations = enabled;
 
45
}