From 764ac297e89e33cae59f52709b2a05edd7015bbc Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Thu, 2 May 2013 22:05:11 +0200 Subject: Removed printout, optimize cinematic and added overlay performance test Change-Id: I7b2ceb52c10d5a02d9b696478c4d0b50af6ea64d Reviewed-by: Gunnar Sletta --- basicsuite/Photo Gallery/main.qml | 3 -- .../Qt5 Cinematic Demo/content/Background.qml | 3 +- experimental/Overlay Tester/main.qml | 51 ++++++++++++++++++++++ 3 files changed, 52 insertions(+), 5 deletions(-) create mode 100644 experimental/Overlay Tester/main.qml diff --git a/basicsuite/Photo Gallery/main.qml b/basicsuite/Photo Gallery/main.qml index d82bd84..b2779e8 100644 --- a/basicsuite/Photo Gallery/main.qml +++ b/basicsuite/Photo Gallery/main.qml @@ -80,7 +80,6 @@ Item { MouseArea { anchors.fill: parent onClicked: { - print("doing stuff..") root.showBigImage(filePath, box.x - grid.contentX, box.y - grid.contentY, image); } } @@ -93,8 +92,6 @@ Item { fakeBigImage.sourceSize = image.sourceSize; fakeBigImage.source = filePath; - print("painted sizes: ", fakeBigImage.paintedHeight, fakeBigImage.paintedWidth) - beginEnterLargeAnimation.running = true; } diff --git a/basicsuite/Qt5 Cinematic Demo/content/Background.qml b/basicsuite/Qt5 Cinematic Demo/content/Background.qml index 8124d01..f0225ba 100644 --- a/basicsuite/Qt5 Cinematic Demo/content/Background.qml +++ b/basicsuite/Qt5 Cinematic Demo/content/Background.qml @@ -1,11 +1,10 @@ import QtQuick 2.0 import QtQuick.Particles 2.0 -Rectangle { +Item { id: root anchors.fill: parent - color: "#ffffff" Image { id: backgroundImage 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" + } + +} -- cgit v1.2.3