#include <transformlayoutanimation.h>
List of all members.
Detailed Description
A layout animation for animating the widget's position, scaling and the position of the widget's container.
Constructor & Destructor Documentation
TransformLayoutAnimation::TransformLayoutAnimation |
( |
MLayout * |
layout |
) |
|
Constructor
- Parameters:
-
| layout | the layout to animate |
TransformLayoutAnimation::~TransformLayoutAnimation |
( |
|
) |
[virtual] |
Member Function Documentation
void TransformLayoutAnimation::animatedDeleteItem |
( |
int |
index |
) |
[virtual] |
void TransformLayoutAnimation::cancelAnimation |
( |
|
) |
|
Cancels the animation. The layout items animate back to the original positions
TransformAnimation * TransformLayoutAnimation::createAnimation |
( |
QGraphicsWidget * |
widget |
) |
[protected, virtual] |
Called by the layout animation to create animation objects for each widget in the layout
- Parameters:
-
| widget | the widget to animate |
- Returns:
- new instance of the animation object
float TransformLayoutAnimation::currentCurveValue |
( |
|
) |
const |
Returns the current value of the animation curve
int TransformLayoutAnimation::duration |
( |
|
) |
const [virtual] |
void TransformLayoutAnimation::hideItem |
( |
int |
index |
) |
[virtual] |
bool TransformLayoutAnimation::isCanceled |
( |
|
) |
|
Returns true if the animation was canceled
void TransformLayoutAnimation::itemAddedToLayout |
( |
int |
index |
) |
[virtual] |
void TransformLayoutAnimation::itemRemovedFromLayout |
( |
int |
index |
) |
[virtual] |
bool TransformLayoutAnimation::manualControl |
( |
|
) |
const |
Returns the current manual control status
float TransformLayoutAnimation::progress |
( |
|
) |
const |
Returns the current progress of the animation
void TransformLayoutAnimation::resetAnimationAttributes |
( |
|
) |
[protected] |
Resets the internal animation state variables.
void TransformLayoutAnimation::setItemGeometry |
( |
int |
index, |
|
|
const QRectF & |
geometry | |
|
) |
| | [virtual] |
void TransformLayoutAnimation::setManualControl |
( |
bool |
enabled |
) |
|
Sets the animation manual control mode
- Parameters:
-
| enabled | If true, animation stays at current progress. Otherwise, animation runs automatically to the end |
void TransformLayoutAnimation::setProgress |
( |
float |
t |
) |
|
Sets the current progress of the animation
- Parameters:
-
| t | the new progress, with range 0 to 1 |
float TransformLayoutAnimation::speed |
( |
|
) |
const |
Returns the current animation speed
void TransformLayoutAnimation::updateCurrentTime |
( |
int |
currentTime |
) |
[protected, virtual] |
virtual void TransformLayoutAnimation::updateState |
( |
QAbstractAnimation::State |
newState, |
|
|
QAbstractAnimation::State |
oldState | |
|
) |
| | [protected, virtual] |
void TransformLayoutAnimation::willFinish |
( |
|
) |
[signal] |
Sent when the animation is finishing. The animation must be stopped separately after receiving this signal. This makes it possible to cancel the geometry changes of the layout items without making them jump at the end of the animation.
Member Data Documentation
Transform animations for the widgets in the layout
The documentation for this class was generated from the following files: