Home · All Classes · Main Classes · Deprecated
Public Member Functions

MWidgetAnimation Class Reference

Inherits MGroupAnimation.

List of all members.

Public Member Functions

 MWidgetAnimation (QObject *parent=NULL)
virtual ~MWidgetAnimation ()
void addWidget (QGraphicsWidget *widget)
void removeWidget (QGraphicsWidget *widget)
void setDuration (int msecs, const QString &property=QString())
void setEasingCurve (const QEasingCurve &curve, const QString &property=QString())
void setTargetValue (QGraphicsWidget *widget, const QString &property, const QVariant &value)
void setKeyFrameAt (QGraphicsWidget *widget, const QString &property, qreal step, const QVariant &value)
void setKeyFrames (QGraphicsWidget *widget, const QString &property, const QVector< QVariant > &values)
void setKeyFrames (QGraphicsWidget *widget, const QString &property, const QVector< QPair< qreal, QVariant > > &values)
void setTargetGeometry (QGraphicsWidget *widget, const QRectF &target)
void setTargetOpacity (QGraphicsWidget *widget, qreal target)
void setTargetSize (QGraphicsWidget *widget, const QSizeF &target)
void setTargetPosition (QGraphicsWidget *widget, const QPointF &target)

Constructor & Destructor Documentation

MWidgetAnimation::MWidgetAnimation ( QObject parent = NULL  ) 

Constructs the widget animation.

virtual MWidgetAnimation::~MWidgetAnimation (  )  [virtual]

Destructs the widget animation.


Member Function Documentation

void MWidgetAnimation::addWidget ( QGraphicsWidget widget  ) 

Add new widget to animation.

void MWidgetAnimation::removeWidget ( QGraphicsWidget widget  ) 

Remove widget from animation.

void MWidgetAnimation::setDuration ( int  msecs,
const QString property = QString() 
)

Set duration for an animation.

If property equals to empty string the duration is used for all the different property animations. If property defines a valid property name the duration of the specific property animation is set.

void MWidgetAnimation::setEasingCurve ( const QEasingCurve curve,
const QString property = QString() 
)

Set easing curve for an animation.

If property equals to empty string the curve is used for all the different property animations. If property defines a valid property name the curve of the specific property animation is set.

void MWidgetAnimation::setKeyFrameAt ( QGraphicsWidget widget,
const QString property,
qreal  step,
const QVariant value 
)

Creates a key frame for property at the given step with the given value.

The given step must be in the range 0.0 to 1.0.

void MWidgetAnimation::setKeyFrames ( QGraphicsWidget widget,
const QString property,
const QVector< QPair< qreal, QVariant > > &  values 
)

Initializes keyframe animation for property with given keyframe step and values pairs.

void MWidgetAnimation::setKeyFrames ( QGraphicsWidget widget,
const QString property,
const QVector< QVariant > &  values 
)

Initializes keyframe animation for property with given keyframe values.

The steps between the keyframes are equally sized.

void MWidgetAnimation::setTargetGeometry ( QGraphicsWidget widget,
const QRectF target 
)

Sets target for geometry animation. If widget == NULL, the same target is set for all the added widgets, otherwise the target is set only for the specific widget.

void MWidgetAnimation::setTargetOpacity ( QGraphicsWidget widget,
qreal  target 
)

Sets target for opacity animation. If widget == NULL, the same target is set for all the added widgets, otherwise the target is set only for the specific widget.

void MWidgetAnimation::setTargetPosition ( QGraphicsWidget widget,
const QPointF target 
)

Sets target for position animation. If widget == NULL, the same target is set for all the added widgets, otherwise the target is set only for the specific widget.

void MWidgetAnimation::setTargetSize ( QGraphicsWidget widget,
const QSizeF target 
)

Sets target for size animation. If widget == NULL, the same target is set for all the added widgets, otherwise the target is set only for the specific widget.

void MWidgetAnimation::setTargetValue ( QGraphicsWidget widget,
const QString property,
const QVariant value 
)

Sets target value for a property animation.


Copyright © 2010 Nokia Corporation
MeeGo Touch