From 98ad7efd3d2c915d264a63e01f7d6366da3b1c84 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Thu, 8 Nov 2012 16:12:01 +0100 Subject: Window example tests Qt.application.supportsMultipleWindows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7fcdd518e56427316f454ff4e5b298d13b396ac0 Reviewed-by: Samuel Rødal --- examples/window/window/standalone.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/window/window/standalone.qml') diff --git a/examples/window/window/standalone.qml b/examples/window/window/standalone.qml index a06db633a7..a7a7ed2d7a 100644 --- a/examples/window/window/standalone.qml +++ b/examples/window/window/standalone.qml @@ -49,7 +49,8 @@ Item { Text { id: text1 anchors.centerIn: parent - text: "First Window" + text: "First Window\n" + (Qt.application.supportsMultipleWindows ? + "click the button to open a second window" : "only one window is allowed") } Rectangle { border.color: "black" @@ -73,6 +74,7 @@ Item { anchors.margins: 10 width: text.implicitWidth + 20 height: text.implicitHeight + 20 + visible: Qt.application.supportsMultipleWindows Text { id: text text: "Pop up window" -- cgit v1.2.3