diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2012-01-18 11:48:30 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-27 06:17:54 +0100 |
commit | 7c9f6b7b8f2a1959ded34215d09e5a2e3dbaf0b7 (patch) | |
tree | 9efeb0d32df9742e77aeee71798d41388dfda498 /src/quick/items/qquicksprite.cpp | |
parent | 335aa328622523c17b36e676cb1aa37283ce8fda (diff) |
Implement randomStart for sprites
Most useful in the particle system, so that sprites aren't temporally
aligned at the start (ruining the random look).
Change-Id: I1cbf6c2187e412fcb8b31cab0d87bcde275c9281
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'src/quick/items/qquicksprite.cpp')
-rw-r--r-- | src/quick/items/qquicksprite.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/quick/items/qquicksprite.cpp b/src/quick/items/qquicksprite.cpp index fc7f0894c4..ac5fe5d678 100644 --- a/src/quick/items/qquicksprite.cpp +++ b/src/quick/items/qquicksprite.cpp @@ -174,6 +174,18 @@ QT_BEGIN_NAMESPACE */ /*! + \qmlproperty bool QtQuick2::Sprite::randomStart + + If true, then the animation will start its first animation with a random amount of its duration skipped. + This allows them to not look like they all just started when the animation begins. + + This only affects the very first animation played. Transitioning to another animation, or the same + animation again, will not trigger this. + + Default is false. +*/ + +/*! \qmlproperty bool QtQuick2::Sprite::frameSync If true, then the animation will have no duration. Instead, the animation will advance |