summaryrefslogtreecommitdiffstats
path: root/src/runtime/q3dsslideplayer_p.h
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@qt.io>2019-03-14 10:23:58 +0100
committerAapo Keskimolo <aapo.keskimolo@qt.io>2019-03-20 17:28:53 +0000
commite3c0ab60efae81a63e28e5507f5dc777aa13e753 (patch)
tree0fd4572519668fc752c7322b0c91619bf6268b30 /src/runtime/q3dsslideplayer_p.h
parentb7df8c5e2bd9feb1090b649ce5f3daeb9dbd0b75 (diff)
Fix EOS logic in the animator
The logic was broken and in some cases we would not detect that we reached the end e.g, when the local time was equal to the duration, in this case we ended up in a no-op situation and the slide state would not change and the timeChangeCallback would never be called, which meant that visibility wasn't updated as expected. Fixes: QT3DS-3080 Change-Id: Ic6dcfd08ef13a18b769cf5eea3113ec31b776d95 Reviewed-by: Janne Kangas <janne.kangas@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/runtime/q3dsslideplayer_p.h')
-rw-r--r--src/runtime/q3dsslideplayer_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/q3dsslideplayer_p.h b/src/runtime/q3dsslideplayer_p.h
index 1de9d91..6178884 100644
--- a/src/runtime/q3dsslideplayer_p.h
+++ b/src/runtime/q3dsslideplayer_p.h
@@ -80,6 +80,8 @@ public:
void objectAddedToSlide(Q3DSGraphObject *obj, Q3DSSlide *slide) override;
void objectRemovedFromSlide(Q3DSGraphObject *obj, Q3DSSlide *slide) override;
+ float playbackRate() const override;
+
public Q_SLOTS:
void play() override;
void stop() override;