aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qml/data/unsizedItem.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qml/data/unsizedItem.qml')
-rw-r--r--tests/auto/qml/qml/data/unsizedItem.qml18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/qml/qml/data/unsizedItem.qml b/tests/auto/qml/qml/data/unsizedItem.qml
new file mode 100644
index 0000000000..e32784762f
--- /dev/null
+++ b/tests/auto/qml/qml/data/unsizedItem.qml
@@ -0,0 +1,18 @@
+import QtQuick
+
+Rectangle {
+ id: rect
+ color: "green"
+
+ 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()
+ }
+}