diff options
author | Louis du Verdier <louis.du.verdier@free.fr> | 2017-07-29 22:57:43 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-01-16 11:45:34 +0000 |
commit | e26e1c61c7acb1538a50c9ab570c6811c652581d (patch) | |
tree | 7ac82daa87b15be4cec32ab00e41689e96bf3925 /src/quick/items/qquickanimatedimage_p_p.h | |
parent | 196c691ebce3a48c6479162f3084790b6d0af8b8 (diff) |
Add a speed property to AnimatedImage
QMovie handles most of AnimatedImage's behaviors and already provides a
speed property (that is a percentage, 100% by default). This commit only
offers the possibility to change its value from the QML.
Task-number: QTBUG-62203
Change-Id: I8b7b79053181c1544aee1e95054b3b48229381fb
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquickanimatedimage_p_p.h')
-rw-r--r-- | src/quick/items/qquickanimatedimage_p_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quick/items/qquickanimatedimage_p_p.h b/src/quick/items/qquickanimatedimage_p_p.h index 68c4f2d359..ef30c39fed 100644 --- a/src/quick/items/qquickanimatedimage_p_p.h +++ b/src/quick/items/qquickanimatedimage_p_p.h @@ -70,7 +70,7 @@ class QQuickAnimatedImagePrivate : public QQuickImagePrivate public: QQuickAnimatedImagePrivate() - : playing(true), paused(false), preset_currentframe(0), _movie(0), oldPlaying(false) + : playing(true), paused(false), speed(1.0), preset_currentframe(0), _movie(0), oldPlaying(false) #if QT_CONFIG(qml_network) , reply(0), redirectCount(0) #endif @@ -82,6 +82,7 @@ public: bool playing; bool paused; + qreal speed; int preset_currentframe; QMovie *_movie; bool oldPlaying; |