summaryrefslogtreecommitdiffstats
path: root/animals/animals.qml
diff options
context:
space:
mode:
Diffstat (limited to 'animals/animals.qml')
-rw-r--r--animals/animals.qml57
1 files changed, 54 insertions, 3 deletions
diff --git a/animals/animals.qml b/animals/animals.qml
index 58c68b6..0477cf8 100644
--- a/animals/animals.qml
+++ b/animals/animals.qml
@@ -5,12 +5,63 @@ Rectangle {
width: 520
height: 500
- Flickable {
- //Rectangle {
+/*
+ GestureArea {
+ anchors.fill: parent
+
+ Tap {
+ when: gesture.state == Qt.GestureStarted
+ script: { console.log("tap wallpaper started");
+
+ }
+ }
+
+ Pan {
+ when: gesture.state == Qt.GestureStarted
+ script: { console.log("pan wallpaper started");
+ }
+ }
+ Pan {
+ when: gesture.state == Qt.GestureUpdated
+ script: {
+ //console.log("pan update dx:" + gesture.delta.x + " dy: " + gesture.delta.y
+ // + " ox: " + gesture.offset.x);
+ }
+ }
+ Pan {
+ when: gesture.state == Qt.GestureFinished
+ script: { console.log("pan finished");
+ }
+ }
+ }
+*/
+
+Flickable { contentWidth: parent.width*3; contentHeight: parent.height*3;
id: flickable
width: parent.width
height: parent.height
- contentHeight: parent.height*3
+
+ Text {
+ id: bottomleft;
+ text: "(0," + parent.height + ")";
+ anchors.bottom: parent.bottom;
+ anchors.left: parent.left;
+ z: 2;
+ }
+ Text {
+ id: bottomright;
+ text: "(" + parent.width + "," + parent.height + ")";
+ anchors.bottom: parent.bottom;
+ anchors.right: parent.right;
+ z: 2;
+ }
+ Text {
+ id: topright;
+ text: "(" + parent.width + ",0)";
+ anchors.top: parent.top;
+ anchors.right: parent.right;
+ z: 2;
+ }
Rectangle {
id: contentRect