summaryrefslogtreecommitdiffstats
path: root/src/runtime/q3dsslideplayer_p.h
diff options
context:
space:
mode:
authorAdam Treat <adam.treat@qt.io>2018-03-13 11:14:47 -0400
committerAdam Treat <adam.treat@qt.io>2018-03-14 12:51:44 +0000
commit830f15c5cbdbee35f36d8e48cc70a9923389742c (patch)
tree8c6ddf4f7ebef7bde6772c6fa2f48bc7e510a840 /src/runtime/q3dsslideplayer_p.h
parent758a9017b738408c513b06425137bd6d891ac3f6 (diff)
Fix bug where component and child objects on slidedeck were out of sync
When evaluating whether a node is visible, we have to take into account whether the node's parent if it is part of a component is itself visible. Change-Id: I06ee8a866db686b6ad709480030908657bb772b2 Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src/runtime/q3dsslideplayer_p.h')
-rw-r--r--src/runtime/q3dsslideplayer_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/q3dsslideplayer_p.h b/src/runtime/q3dsslideplayer_p.h
index 3bf3700..085d6f6 100644
--- a/src/runtime/q3dsslideplayer_p.h
+++ b/src/runtime/q3dsslideplayer_p.h
@@ -140,7 +140,7 @@ private:
bool forceUpdate = false);
// TODO: Move out to a "slide manager"?
- void setSlideTime(Q3DSSlide *slide, float time);
+ void setSlideTime(Q3DSSlide *slide, float time, bool parentVisible = true);
void sendPositionChanged(Q3DSSlide *slide, float pos);
void updateNodeVisibility(Q3DSNode *node, bool visible);
bool isSlideVisible(Q3DSSlide *slide);