aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquickflickable/data/resize.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtquick2/qquickflickable/data/resize.qml')
-rw-r--r--tests/auto/qtquick2/qquickflickable/data/resize.qml27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/auto/qtquick2/qquickflickable/data/resize.qml b/tests/auto/qtquick2/qquickflickable/data/resize.qml
new file mode 100644
index 0000000000..1a9ef54107
--- /dev/null
+++ b/tests/auto/qtquick2/qquickflickable/data/resize.qml
@@ -0,0 +1,27 @@
+import QtQuick 2.0
+
+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"
+ }
+ }
+}