summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--basicsuite/Photo Gallery/main.qml3
-rw-r--r--basicsuite/Qt5 Cinematic Demo/content/Background.qml3
-rw-r--r--experimental/Overlay Tester/main.qml51
3 files changed, 52 insertions, 5 deletions
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"
+ }
+
+}