From 5d34c984ecbed1a6d6f27fbaa3d83a137e052b65 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Tue, 20 Mar 2018 13:38:56 +0100 Subject: Add goToSlide variants Change-Id: I7598a167b4c10a38b9e824189491e08271083c50 Reviewed-by: Christian Stromme --- examples/3dstudioruntime2/simpleqml/main.qml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'examples') 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 -- cgit v1.2.3