diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2015-03-23 15:48:54 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2015-04-27 10:09:20 +0000 |
commit | 2e34ef2d053cfa0c152442a758dda6296902c7c8 (patch) | |
tree | c415b937176f41fc05cc0262b41df1e38eb0a91f /examples/qt3d/deferred-renderer-qml/main.qml | |
parent | 636a27e482f7085b25086250408f2d9dc4edbc5f (diff) |
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 <sean.harmer@kdab.com>
Diffstat (limited to 'examples/qt3d/deferred-renderer-qml/main.qml')
-rw-r--r-- | examples/qt3d/deferred-renderer-qml/main.qml | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/qt3d/deferred-renderer-qml/main.qml b/examples/qt3d/deferred-renderer-qml/main.qml index c30c57fd4..d70619baa 100644 --- a/examples/qt3d/deferred-renderer-qml/main.qml +++ b/examples/qt3d/deferred-renderer-qml/main.qml @@ -138,14 +138,14 @@ Entity { property Transform transform : Transform { Translate{ dx: -10; dy: 0; dz : 5 id: sphere1Translate - QQ2.SequentialAnimation { - loops: QQ2.Animation.Infinite - running: false - QQ2.NumberAnimation {target: sphere1Translate; property: "dx"; to: 6; duration: 2000 } - QQ2.NumberAnimation {target: sphere1Translate; property: "dx"; to: -10; duration: 2000 } - } } } + QQ2.SequentialAnimation { + loops: QQ2.Animation.Infinite + running: false + QQ2.NumberAnimation {target: sphere1Translate; property: "dx"; to: 6; duration: 2000 } + QQ2.NumberAnimation {target: sphere1Translate; property: "dx"; to: -10; duration: 2000 } + } property PointLight light : PointLight { color : "green" @@ -201,14 +201,14 @@ Entity { property Transform transform : Transform { Translate{ id: light3Translate; dx: 2; dy: 2; dz : 7 - QQ2.SequentialAnimation { - loops: QQ2.Animation.Infinite - running: true - QQ2.NumberAnimation {target: light3Translate; property: "dy"; to: 6; duration: 1000; easing.type: QQ2.Easing.InOutQuad } - QQ2.NumberAnimation {target: light3Translate; property: "dy"; to: -6; duration: 1000; easing.type: QQ2.Easing.InOutQuint } - } } } + QQ2.SequentialAnimation { + loops: QQ2.Animation.Infinite + running: true + QQ2.NumberAnimation {target: light3Translate; property: "dy"; to: 6; duration: 1000; easing.type: QQ2.Easing.InOutQuad } + QQ2.NumberAnimation {target: light3Translate; property: "dy"; to: -6; duration: 1000; easing.type: QQ2.Easing.InOutQuint } + } components: [ sphereMesh, |