aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qml/data/sizedItem.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qml/data/sizedItem.qml')
-rw-r--r--tests/auto/qml/qml/data/sizedItem.qml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/qml/qml/data/sizedItem.qml b/tests/auto/qml/qml/data/sizedItem.qml
new file mode 100644
index 0000000000..edcb0e8629
--- /dev/null
+++ b/tests/auto/qml/qml/data/sizedItem.qml
@@ -0,0 +1,19 @@
+import QtQuick
+
+Rectangle {
+ id: rect
+ color: "blue"
+ width: 200; height: 150
+
+ Timer {
+ id: exitTimer
+ running: false
+ onTriggered: Qt.quit()
+ }
+
+ Window.onHeightChanged: {
+ if (rect.Window.width > 0)
+ console.info("window", rect.Window.width, rect.Window.height, "content", rect.width, rect.height)
+ exitTimer.restart()
+ }
+}