diff options
Diffstat (limited to 'tests/manual/nodetypes/main.qml')
-rw-r--r-- | tests/manual/nodetypes/main.qml | 69 |
1 files changed, 9 insertions, 60 deletions
diff --git a/tests/manual/nodetypes/main.qml b/tests/manual/nodetypes/main.qml index 81d1e63ead..8e816fac28 100644 --- a/tests/manual/nodetypes/main.qml +++ b/tests/manual/nodetypes/main.qml @@ -41,69 +41,18 @@ import QtQuick 2.0 Item { - Rectangle { - width: 100 - height: 100 - anchors.centerIn: parent - color: "red" - NumberAnimation on rotation { from: 0; to: 360; duration: 2000; loops: Animation.Infinite; } + focus: true - Rectangle { - color: "gray" - width: 50 - height: 50 - anchors.centerIn: parent - - SequentialAnimation on opacity { - loops: Animation.Infinite - NumberAnimation { - from: 1.0 - to: 0.0 - duration: 4000 - } - NumberAnimation { - from: 0.0 - to: 1.0 - duration: 4000 - easing.type: Easing.InOutQuad - } - } - } - } - - Rectangle { - color: "green" - width: 100 - height: 200 - x: 0 - y: 0 - - NumberAnimation on x { - from: 0 - to: 300 - duration: 10000 - } + Loader { + anchors.fill: parent + id: loader } - Rectangle { - color: "blue" - width: 200 - height: 100 - x: 100 - y: 300 + Keys.onPressed: { + if (event.key === Qt.Key_S) + loader.source = ""; - SequentialAnimation on y { - loops: Animation.Infinite - NumberAnimation { - from: 300 - to: 500 - duration: 7000 - } - NumberAnimation { - from: 500 - to: 300 - duration: 3000 - } - } + if (event.key === Qt.Key_R) + loader.source = "qrc:/Rects.qml"; } } |