* take a qobject parent

* the dtor is implemented, not pure virt

svn path=/trunk/KDE/kdelibs/; revision=1038328
This commit is contained in:
Aaron J. Seigo 2009-10-21 04:15:04 +00:00
parent 28e7a91ff2
commit 27dbf07aec
2 changed files with 5 additions and 4 deletions

View File

@ -26,8 +26,9 @@ namespace Plasma
{
AbstractAnimation::AbstractAnimation()
: d(new AbstractAnimationPrivate)
AbstractAnimation::AbstractAnimation(QObject *parent)
: QObject(parent),
d(new AbstractAnimationPrivate)
{
d->easingCurve = QEasingCurve::Linear;
}

View File

@ -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.