From ece29b7300f0750cfea9027f1bf30b8698e1665f Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Thu, 22 Oct 2009 04:07:32 +0000 Subject: [PATCH] parent, no export, code style svn path=/trunk/KDE/kdelibs/; revision=1038851 --- animations/expand.cpp | 8 ++++---- animations/expand.h | 8 +++----- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/animations/expand.cpp b/animations/expand.cpp index a6562a931..12ade0e50 100644 --- a/animations/expand.cpp +++ b/animations/expand.cpp @@ -25,13 +25,13 @@ namespace Plasma { -ExpandAnimation::ExpandAnimation(AnimationDirection direction, qreal distance) +ExpandAnimation::ExpandAnimation(QObject *parent) + : Animation(parent) { - setDirection(direction); - setDistance(distance); } -QAbstractAnimation* ExpandAnimation::render(QObject* parent){ +QAbstractAnimation* ExpandAnimation::render(QObject* parent) +{ //get current geometry values QGraphicsWidget *m_object = widgetToAnimate(); diff --git a/animations/expand.h b/animations/expand.h index 381a7775d..9773138e1 100644 --- a/animations/expand.h +++ b/animations/expand.h @@ -37,17 +37,15 @@ namespace Plasma * Effect that grows the object a specific distance in a given direction, on * one side. The object doesn't "move" except for the side that is expanding. */ -class PLASMA_EXPORT ExpandAnimation : public Animation +class ExpandAnimation : public Animation { Q_OBJECT public: - ExpandAnimation(AnimationDirection direction = MoveUp, qreal distance = 0); - virtual ~ExpandAnimation(){}; + ExpandAnimation(QObject *parent = 0); protected: - virtual QAbstractAnimation* render(QObject* parent = 0); - + virtual QAbstractAnimation *render(QObject* parent = 0); }; }