parent, no export, code style

svn path=/trunk/KDE/kdelibs/; revision=1038851
This commit is contained in:
Aaron J. Seigo 2009-10-22 04:07:32 +00:00
parent 1f7370376b
commit ece29b7300
2 changed files with 7 additions and 9 deletions

View File

@ -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();

View File

@ -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);
};
}