diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-03-20 13:38:56 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-03-20 15:31:06 +0000 |
commit | 5d34c984ecbed1a6d6f27fbaa3d83a137e052b65 (patch) | |
tree | 69d3294da54ed786bb2778de6bc8e22dea347d0b /examples | |
parent | 7a43eeaae1ccf87ea2b1471c924ab4bf411f9dd8 (diff) |
Add goToSlide variants
Change-Id: I7598a167b4c10a38b9e824189491e08271083c50
Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/3dstudioruntime2/simpleqml/main.qml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/3dstudioruntime2/simpleqml/main.qml b/examples/3dstudioruntime2/simpleqml/main.qml index fd465fc..1e5b203 100644 --- a/examples/3dstudioruntime2/simpleqml/main.qml +++ b/examples/3dstudioruntime2/simpleqml/main.qml @@ -186,6 +186,19 @@ Rectangle { anchors.left: slideEnter.right anchors.leftMargin: 8 } + Button { + id: nextSlideByIndex + text: "Next slide" + anchors.left: parent.left + anchors.bottom: fpsCount.top + onClicked: s3dpres.goToSlide("Scene", true, true) + } + Button { + text: "Seek to 5 seconds" + anchors.left: nextSlideByIndex.right + anchors.bottom: fpsCount.top + onClicked: s3dpres.goToTime("Scene", 5) + } FileDialog { id: openDialog |