diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-06-24 23:40:13 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-06-24 23:40:13 (GMT) |
commit | 969f15aa35863bf5bd3d3d2cfa087cf67d5ddc81 (patch) | |
tree | 5dee56140179269e6cbff72b6766d70db82b492b /src | |
parent | 83449457780f4321595ec5f15056474cc22061da (diff) | |
download | Qt-969f15aa35863bf5bd3d3d2cfa087cf67d5ddc81.zip Qt-969f15aa35863bf5bd3d3d2cfa087cf67d5ddc81.tar.gz Qt-969f15aa35863bf5bd3d3d2cfa087cf67d5ddc81.tar.bz2 |
Add support for setting/getting animation time.
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/util/qmlanimation.cpp | 10 | ||||
-rw-r--r-- | src/declarative/util/qmlanimation.h | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/declarative/util/qmlanimation.cpp b/src/declarative/util/qmlanimation.cpp index 2a6cad9..4776391 100644 --- a/src/declarative/util/qmlanimation.cpp +++ b/src/declarative/util/qmlanimation.cpp @@ -371,6 +371,16 @@ void QmlAbstractAnimation::setRepeat(bool r) emit repeatChanged(r); } +int QmlAbstractAnimation::currentTime() +{ + qtAnimation()->currentTime(); +} + +void QmlAbstractAnimation::setCurrentTime(int time) +{ + qtAnimation()->setCurrentTime(time); +} + QmlAnimationGroup *QmlAbstractAnimation::group() const { Q_D(const QmlAbstractAnimation); diff --git a/src/declarative/util/qmlanimation.h b/src/declarative/util/qmlanimation.h index 0452159..b0dd261 100644 --- a/src/declarative/util/qmlanimation.h +++ b/src/declarative/util/qmlanimation.h @@ -86,6 +86,9 @@ public: bool repeat() const; void setRepeat(bool); + int currentTime(); + void setCurrentTime(int); + QmlAnimationGroup *group() const; void setGroup(QmlAnimationGroup *); |