parent, no export, code style
svn path=/trunk/KDE/kdelibs/; revision=1038851
This commit is contained in:
parent
1f7370376b
commit
ece29b7300
@ -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();
|
||||
|
@ -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);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user