aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2012-11-08 16:12:01 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-10 00:14:53 +0100
commit98ad7efd3d2c915d264a63e01f7d6366da3b1c84 (patch)
treed5001d02371e4c60b3c2c9049f192722e2abec81 /examples
parent6c01b9dca27ff2c16f375a79471e305bc9296eee (diff)
Window example tests Qt.application.supportsMultipleWindows
Change-Id: I7fcdd518e56427316f454ff4e5b298d13b396ac0 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/window/window/standalone.qml4
1 files changed, 3 insertions, 1 deletions
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"