summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-04-23 17:05:27 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-04-25 17:43:12 +0000
commit6d42c6fd3396ece5e74e602f7cdfc9c9299866bf (patch)
treea0f7ffa12424a24247d974f731ae2a83985ebb33 /examples
parent5e5107493cb83f139803c604bffa2944c9a2213e (diff)
window example: close window on 'X' button press, not just hide it
Change-Id: Ice699b3350b223db25e4865c930caf6e3afb647c Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/window/window.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/window/window.qml b/examples/quick/window/window.qml
index a1223da866..2ee7fb6e09 100644
--- a/examples/quick/window/window.qml
+++ b/examples/quick/window/window.qml
@@ -187,7 +187,7 @@ QtObject {
anchors.margins: defaultSpacing
text: "X"
width: 30
- onClicked: testWindow.visible = false
+ onClicked: testWindow.close()
}
}
}