aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick1/qdeclarativeflickable/data
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtquick1/qdeclarativeflickable/data')
-rw-r--r--tests/auto/qtquick1/qdeclarativeflickable/data/disabledcontent.qml8
-rw-r--r--tests/auto/qtquick1/qdeclarativeflickable/data/flickable01.qml4
-rw-r--r--tests/auto/qtquick1/qdeclarativeflickable/data/flickable02.qml14
-rw-r--r--tests/auto/qtquick1/qdeclarativeflickable/data/flickable03.qml14
-rw-r--r--tests/auto/qtquick1/qdeclarativeflickable/data/flickable04.qml22
-rw-r--r--tests/auto/qtquick1/qdeclarativeflickable/data/flickableqgraphicswidget.qml7
-rw-r--r--tests/auto/qtquick1/qdeclarativeflickable/data/nestedPressDelay.qml33
-rw-r--r--tests/auto/qtquick1/qdeclarativeflickable/data/resize.qml27
-rw-r--r--tests/auto/qtquick1/qdeclarativeflickable/data/wheel.qml21
9 files changed, 150 insertions, 0 deletions
diff --git a/tests/auto/qtquick1/qdeclarativeflickable/data/disabledcontent.qml b/tests/auto/qtquick1/qdeclarativeflickable/data/disabledcontent.qml
new file mode 100644
index 0000000000..dcbb20bdd5
--- /dev/null
+++ b/tests/auto/qtquick1/qdeclarativeflickable/data/disabledcontent.qml
@@ -0,0 +1,8 @@
+import QtQuick 1.0
+
+Flickable {
+ width: 100; height: 100
+ contentWidth: 200; contentHeight: 300
+
+ QGraphicsWidget { width: 200; height: 300; enabled: false }
+}
diff --git a/tests/auto/qtquick1/qdeclarativeflickable/data/flickable01.qml b/tests/auto/qtquick1/qdeclarativeflickable/data/flickable01.qml
new file mode 100644
index 0000000000..c53ae3f98a
--- /dev/null
+++ b/tests/auto/qtquick1/qdeclarativeflickable/data/flickable01.qml
@@ -0,0 +1,4 @@
+import QtQuick 1.0
+
+Flickable {
+}
diff --git a/tests/auto/qtquick1/qdeclarativeflickable/data/flickable02.qml b/tests/auto/qtquick1/qdeclarativeflickable/data/flickable02.qml
new file mode 100644
index 0000000000..98925ae3c6
--- /dev/null
+++ b/tests/auto/qtquick1/qdeclarativeflickable/data/flickable02.qml
@@ -0,0 +1,14 @@
+import QtQuick 1.0
+
+Flickable {
+ width: 100; height: 100
+ contentWidth: row.width; contentHeight: row.height
+
+ Row {
+ id: row
+ Repeater {
+ model: 4
+ Rectangle { width: 200; height: 300; color: "blue" }
+ }
+ }
+}
diff --git a/tests/auto/qtquick1/qdeclarativeflickable/data/flickable03.qml b/tests/auto/qtquick1/qdeclarativeflickable/data/flickable03.qml
new file mode 100644
index 0000000000..a3e92fe6a6
--- /dev/null
+++ b/tests/auto/qtquick1/qdeclarativeflickable/data/flickable03.qml
@@ -0,0 +1,14 @@
+import QtQuick 1.0
+
+Flickable {
+ width: 100; height: 100
+ contentWidth: column.width; contentHeight: column.height
+
+ Column {
+ id: column
+ Repeater {
+ model: 4
+ Rectangle { width: 200; height: 300; color: "blue" }
+ }
+ }
+}
diff --git a/tests/auto/qtquick1/qdeclarativeflickable/data/flickable04.qml b/tests/auto/qtquick1/qdeclarativeflickable/data/flickable04.qml
new file mode 100644
index 0000000000..fcc683ae4d
--- /dev/null
+++ b/tests/auto/qtquick1/qdeclarativeflickable/data/flickable04.qml
@@ -0,0 +1,22 @@
+import QtQuick 1.0
+
+Flickable {
+ property bool ok: false
+ function check() {
+ if (column.parent == contentItem)
+ ok = true;
+ }
+
+ width: 100; height: 100
+ contentWidth: column.width; contentHeight: column.height
+ pressDelay: 200; boundsBehavior: Flickable.StopAtBounds; interactive: false
+ maximumFlickVelocity: 2000
+
+ Column {
+ id: column
+ Repeater {
+ model: 4
+ Rectangle { width: 200; height: 300; color: "blue" }
+ }
+ }
+}
diff --git a/tests/auto/qtquick1/qdeclarativeflickable/data/flickableqgraphicswidget.qml b/tests/auto/qtquick1/qdeclarativeflickable/data/flickableqgraphicswidget.qml
new file mode 100644
index 0000000000..6cbf12c1ee
--- /dev/null
+++ b/tests/auto/qtquick1/qdeclarativeflickable/data/flickableqgraphicswidget.qml
@@ -0,0 +1,7 @@
+import QtQuick 1.0
+
+Flickable {
+ width: 100; height: 100
+
+ QGraphicsWidget { objectName: "widget1"; width: 200; height: 300 }
+}
diff --git a/tests/auto/qtquick1/qdeclarativeflickable/data/nestedPressDelay.qml b/tests/auto/qtquick1/qdeclarativeflickable/data/nestedPressDelay.qml
new file mode 100644
index 0000000000..d0ee545f97
--- /dev/null
+++ b/tests/auto/qtquick1/qdeclarativeflickable/data/nestedPressDelay.qml
@@ -0,0 +1,33 @@
+import QtQuick 1.0
+
+Flickable {
+ property bool pressed: ma.pressed
+ width: 240
+ height: 320
+ contentWidth: 480
+ contentHeight: 320
+ flickableDirection: Flickable.HorizontalFlick
+ pressDelay: 50
+ Flickable {
+ objectName: "innerFlickable"
+ flickableDirection: Flickable.VerticalFlick
+ width: 480
+ height: 320
+ contentWidth: 480
+ contentHeight: 400
+ pressDelay: 10000
+ Rectangle {
+ y: 100
+ anchors.horizontalCenter: parent.horizontalCenter
+ width: 240
+ height: 100
+ color: ma.pressed ? 'blue' : 'green'
+ MouseArea {
+ id: ma
+ objectName: "mouseArea"
+ anchors.fill: parent
+ }
+ }
+ }
+}
+
diff --git a/tests/auto/qtquick1/qdeclarativeflickable/data/resize.qml b/tests/auto/qtquick1/qdeclarativeflickable/data/resize.qml
new file mode 100644
index 0000000000..e2abb99f2a
--- /dev/null
+++ b/tests/auto/qtquick1/qdeclarativeflickable/data/resize.qml
@@ -0,0 +1,27 @@
+import QtQuick 1.1
+
+Rectangle {
+ function resizeContent() {
+ flick.resizeContent(600, 600, Qt.point(100, 100))
+ }
+ function returnToBounds() {
+ flick.returnToBounds()
+ }
+ width: 400
+ height: 360
+ color: "gray"
+
+ Flickable {
+ id: flick
+ objectName: "flick"
+ anchors.fill: parent
+ contentWidth: 300
+ contentHeight: 300
+
+ Rectangle {
+ width: flick.contentWidth
+ height: flick.contentHeight
+ color: "red"
+ }
+ }
+}
diff --git a/tests/auto/qtquick1/qdeclarativeflickable/data/wheel.qml b/tests/auto/qtquick1/qdeclarativeflickable/data/wheel.qml
new file mode 100644
index 0000000000..6ea81b2d9e
--- /dev/null
+++ b/tests/auto/qtquick1/qdeclarativeflickable/data/wheel.qml
@@ -0,0 +1,21 @@
+import QtQuick 1.1
+
+Rectangle {
+ width: 400
+ height: 400
+ color: "gray"
+
+ Flickable {
+ id: flick
+ objectName: "flick"
+ anchors.fill: parent
+ contentWidth: 800
+ contentHeight: 800
+
+ Rectangle {
+ width: flick.contentWidth
+ height: flick.contentHeight
+ color: "red"
+ }
+ }
+}