diff options
author | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-05-02 22:05:11 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-05-02 23:09:06 +0300 |
commit | 764ac297e89e33cae59f52709b2a05edd7015bbc (patch) | |
tree | 3228c5758aa3ee943dcb0d4ab760612de180667e /experimental/Overlay Tester | |
parent | 24b79c99072217e430f4687bfc7a3cc978838698 (diff) |
Removed printout, optimize cinematic and added overlay performance test
Change-Id: I7b2ceb52c10d5a02d9b696478c4d0b50af6ea64d
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'experimental/Overlay Tester')
-rw-r--r-- | experimental/Overlay Tester/main.qml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/experimental/Overlay Tester/main.qml b/experimental/Overlay Tester/main.qml new file mode 100644 index 0000000..ee0c54e --- /dev/null +++ b/experimental/Overlay Tester/main.qml @@ -0,0 +1,51 @@ +import QtQuick 2.0 + +Item { + id: root + + width: 100 + height: 62 + + Repeater { + id: repeater + + model: 4 + + Rectangle { + width: root.width + height: root.height + color: "white" + } + + } + + + Rectangle { + anchors.centerIn: parent + width: 100 + height: 100 + color: "black" + border.color: "red" + border.width: 2 + antialiasing: true + + NumberAnimation on rotation { from: 0; to: 360; duration: 5000; loops: Animation.Infinite } + } + + MouseArea { + anchors.fill: parent + onClicked: { + if (mouseY > root.height / 2) + repeater.model++ + else + repeater.model--; + } + } + + Text { + text: repeater.model + anchors.centerIn: parent + color: "white" + } + +} |