From 2e34ef2d053cfa0c152442a758dda6296902c7c8 Mon Sep 17 00:00:00 2001 From: Paul Lemire Date: Mon, 23 Mar 2015 15:48:54 +0100 Subject: Examples: fixed to work with QAbstractTransform as QObject Also fixed QTransform to copy proper transformation matrix to work when loaded in the backend and sent to the frontend. Change-Id: Iec417fd49092b5e3d7971784327ff4bbfb75549b Reviewed-by: Sean Harmer --- examples/qt3d/enabled-qml/main.qml | 81 +++++++++++++++++++------------------- 1 file changed, 41 insertions(+), 40 deletions(-) (limited to 'examples/qt3d/enabled-qml/main.qml') diff --git a/examples/qt3d/enabled-qml/main.qml b/examples/qt3d/enabled-qml/main.qml index 9342ba6c9..031759556 100644 --- a/examples/qt3d/enabled-qml/main.qml +++ b/examples/qt3d/enabled-qml/main.qml @@ -127,49 +127,50 @@ Entity { Translate { id: translate + } + } - QQ2.SequentialAnimation { - running: true - loops: QQ2.Animation.Infinite - QQ2.NumberAnimation { - target: translate; property: "dx" - from: 0; to: 5; - duration: 550 - easing.type: QQ2.Easing.InOutQuad - } - QQ2.NumberAnimation { - target: translate; property: "dy" - from: 0; to: 5; - duration: 650 - easing.type: QQ2.Easing.InOutQuad - } - QQ2.NumberAnimation { - target: translate; property: "dz" - from: 0; to: 5; - duration: 350 - easing.type: QQ2.Easing.InOutQuad - } - QQ2.NumberAnimation { - target: translate; property: "dx" - from: 5; to: 0; - duration: 550 - easing.type: QQ2.Easing.InOutQuad - } - QQ2.NumberAnimation { - target: translate; property: "dy" - from: 5; to: 0; - duration: 350 - easing.type: QQ2.Easing.InOutQuad - } - QQ2.NumberAnimation { - target: translate; property: "dz" - from: 5; to: 0; - duration: 650 - easing.type: QQ2.Easing.InOutQuad - } - } + QQ2.SequentialAnimation { + running: true + loops: QQ2.Animation.Infinite + QQ2.NumberAnimation { + target: translate; property: "dx" + from: 0; to: 5; + duration: 550 + easing.type: QQ2.Easing.InOutQuad + } + QQ2.NumberAnimation { + target: translate; property: "dy" + from: 0; to: 5; + duration: 650 + easing.type: QQ2.Easing.InOutQuad + } + QQ2.NumberAnimation { + target: translate; property: "dz" + from: 0; to: 5; + duration: 350 + easing.type: QQ2.Easing.InOutQuad + } + QQ2.NumberAnimation { + target: translate; property: "dx" + from: 5; to: 0; + duration: 550 + easing.type: QQ2.Easing.InOutQuad + } + QQ2.NumberAnimation { + target: translate; property: "dy" + from: 5; to: 0; + duration: 350 + easing.type: QQ2.Easing.InOutQuad + } + QQ2.NumberAnimation { + target: translate; property: "dz" + from: 5; to: 0; + duration: 650 + easing.type: QQ2.Easing.InOutQuad } } + components: [sphereMesh, material, layer, transform] } -- cgit v1.2.3