diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2012-11-08 16:12:01 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-10 00:14:53 +0100 |
commit | 98ad7efd3d2c915d264a63e01f7d6366da3b1c84 (patch) | |
tree | d5001d02371e4c60b3c2c9049f192722e2abec81 /examples | |
parent | 6c01b9dca27ff2c16f375a79471e305bc9296eee (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.qml | 4 |
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" |