diff --git a/animations/abstractanimation.cpp b/animations/abstractanimation.cpp index e14d2d4bf..19bc2acb7 100644 --- a/animations/abstractanimation.cpp +++ b/animations/abstractanimation.cpp @@ -26,8 +26,9 @@ namespace Plasma { -AbstractAnimation::AbstractAnimation() - : d(new AbstractAnimationPrivate) +AbstractAnimation::AbstractAnimation(QObject *parent) + : QObject(parent), + d(new AbstractAnimationPrivate) { d->easingCurve = QEasingCurve::Linear; } diff --git a/animations/abstractanimation.h b/animations/abstractanimation.h index f9eeea249..b3fe91ab6 100644 --- a/animations/abstractanimation.h +++ b/animations/abstractanimation.h @@ -54,8 +54,8 @@ class PLASMA_EXPORT AbstractAnimation : public QObject public: - AbstractAnimation(); - virtual ~AbstractAnimation() = 0; + AbstractAnimation(QObject *parent = 0); + virtual ~AbstractAnimation(); /** * Set the widget on which the animation is to be performed.