Window example tests Qt.application.supportsMultipleWindows
authorShawn Rutledge <shawn.rutledge@digia.com>
Thu, 8 Nov 2012 15:12:01 +0000 (16:12 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 9 Nov 2012 23:14:53 +0000 (00:14 +0100)
Change-Id: I7fcdd518e56427316f454ff4e5b298d13b396ac0
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
examples/window/window/standalone.qml

index a06db63..a7a7ed2 100644 (file)
@@ -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"