diff options
author | Tim Blechmann <tim@klingt.org> | 2015-08-31 10:16:29 +0200 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@theqtcompany.com> | 2015-10-14 07:55:04 +0000 |
commit | 6aedee898e51804863f4e94f5bdcaece9398fe0a (patch) | |
tree | 39ba1a837127dee7d17f3b18ddc56b84933a3015 /src/quick/items/qquickanimatedsprite_p.h | |
parent | 0789923f391f1e5bebe07b676a41c85a820b2533 (diff) |
AnimatedSprite: avoid unnecessary redraws
AnimatedSprite currently triggers a redraw for every update. however this
should only be done, when the next frame will actually be different to
the current one.
Change-Id: I550bd32c02807e4c3f4847fb2608f5ad0cf0a59a
Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
Diffstat (limited to 'src/quick/items/qquickanimatedsprite_p.h')
-rw-r--r-- | src/quick/items/qquickanimatedsprite_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquickanimatedsprite_p.h b/src/quick/items/qquickanimatedsprite_p.h index 4778afc88b..e535f1b077 100644 --- a/src/quick/items/qquickanimatedsprite_p.h +++ b/src/quick/items/qquickanimatedsprite_p.h @@ -333,6 +333,7 @@ public Q_SLOTS: if (m_curFrame != arg) { m_curFrame = arg; Q_EMIT currentFrameChanged(arg); //TODO-C Only emitted on manual advance! + update(); } } |