summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSamuel Gaist <samuel.gaist@idiap.ch>2018-12-23 23:49:21 +0100
committerSamuel Gaist <samuel.gaist@idiap.ch>2019-01-03 11:37:50 +0000
commit10b3f2c109eb9737648c4581ad198ae8214be78d (patch)
tree2f3a15676d9b4f336e01cff86358eac3c53176d2 /doc
parentec479952c079c4e3f6b0c015e82f7060af9706bc (diff)
macOS: improve quit menu item documentation
The documentation is lacking information about how Qt handles the Quit application menu item. This patch improves that explaining how it should be handled. Change-Id: Id2e8d457f67c7c4a8857cf28e7bf69b5df4c1aa2 Fixes: QTBUG-14174 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'doc')
-rw-r--r--doc/src/platforms/macos.qdoc8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/src/platforms/macos.qdoc b/doc/src/platforms/macos.qdoc
index 39ddea053..6d071942b 100644
--- a/doc/src/platforms/macos.qdoc
+++ b/doc/src/platforms/macos.qdoc
@@ -446,7 +446,7 @@
\endlist
These tests are followed all the way up the parent window chain
- until one of the above rules is satisifed. If all else fails, a
+ until one of the above rules is satisfied. If all else fails, a
default menu bar will be created. The default menu bar on
Qt is an empty menu bar. However, you can create a different
default menu bar by creating a parentless QMenuBar. The first one
@@ -735,6 +735,12 @@
and QMenu::aboutToHide() signals to keep track of menu visibility;
these provide a solution that should work on all platforms
supported by Qt.
+
+ \li By default, Qt creates a native \b Quit menu item that will react
+ to the \c {CMD+Q} shortcut. Creating a QAction for the QAction::QuitRole
+ role will replace that menu item. Therefore, the replacement action
+ should be connected to either the QCoreApplication::quit slot, or a
+ custom slot that stops the application.
\endlist
\section2 Native Widgets