diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-02-26 10:49:49 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-02-26 14:45:24 +0000 |
commit | 41edb3bd9f373a865d5698ac8c18bf341071eae9 (patch) | |
tree | 0c7ed57d082e002e0bb07dc9d24995e649761a12 /tests/auto/qml/qqmlmoduleplugin/data/implicit1/qmldir | |
parent | bcbdd0d22bb0d6f07d5184fd16de1a9c3a439378 (diff) | |
download | qtdeclarative-41edb3bd9f373a865d5698ac8c18bf341071eae9.tar.gz |
Add finished() signal to AnimatedSprite
It's nicer to respond to a sprite finishing its animation like this:
onFinished: doStuff()
than this:
onRunningChanged: if (!running) doStuff()
In addition, the latter will get executed even if the animation
is manually stopped, whereas finished() is only emitted when the
animation finishes naturally.
[ChangeLog][QtQuick][AnimatedSprite] Added finished() signal to
AnimatedSprite as a convenient way to react to an animation finishing.
Change-Id: I558e8372b54bacacd5695cb0edf97d8b84b373f9
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlmoduleplugin/data/implicit1/qmldir')
0 files changed, 0 insertions, 0 deletions