summaryrefslogtreecommitdiffstats
path: root/src/runtime/q3dsslideplayer_p.h
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@qt.io>2018-02-20 12:01:41 +0100
committerChristian Stromme <christian.stromme@qt.io>2018-02-27 10:38:14 +0000
commit714e67009f63ade540ed7ca7389feca1d6a72c2f (patch)
tree92243befc6327b974a4f549a78d51f244f1eb8ac /src/runtime/q3dsslideplayer_p.h
parent8b0fdb253364af887fed0d5144a4501f073bc584 (diff)
Add utility function for getting the start and end time for a slide
Get the start and end time from the slide by looking at the parents layer. This assumes that the properties for the layer(s) has been updates before being called. If the parent doesn't have a layer, e.g., because it's a component, then we get the time by going through the the start and endtime of the slide's objects. Change-Id: Id8d2d134de3efd880ee5379b1316d5f1d3502f5a Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/runtime/q3dsslideplayer_p.h')
-rw-r--r--src/runtime/q3dsslideplayer_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/q3dsslideplayer_p.h b/src/runtime/q3dsslideplayer_p.h
index 6d14ca8..a4c06c4 100644
--- a/src/runtime/q3dsslideplayer_p.h
+++ b/src/runtime/q3dsslideplayer_p.h
@@ -52,6 +52,11 @@ QT_BEGIN_NAMESPACE
class Q3DSAnimationManager;
class Q3DSSlideDeck;
+namespace Q3DSSlideUtils
+{
+ Q3DSV_PRIVATE_EXPORT void getStartAndEndTime(Q3DSSlide *slide, qint32 *start, qint32 *end);
+};
+
class Q3DSV_PRIVATE_EXPORT Q3DSSlidePlayer : public QObject
{
Q_OBJECT