qt5base-lts/tests/manual/cocoa
Gabriel de Dietrich 595c1ae9e7 Cocoa Menus: Add support for menu items in window-less apps
Since we moved the menu items validation and target/action to
QNSView (thus relying on the responder chain), we need to take
care of case when the applications that doesn't have any window
open. By adding similar methods to QCocoaApplicationDelegate,
the last responder, we ensure the menu items will be validated
and will trigger properly. This is particularly necessary for
dock menu items, which live separately from any top-level widget.

Dock menu added to Menurama which won't quit when its last window
is closed. This way we can test that dock menu items will trigger
in the absence of any window.

Change-Id: I56d864eb9da1f8dd5adb2a3b6c3dd5304c723117
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
2018-05-23 18:09:28 +00:00
..
appicon Updated license headers 2016-01-21 18:55:18 +00:00
menurama Cocoa Menus: Add support for menu items in window-less apps 2018-05-23 18:09:28 +00:00
menus Updated license headers 2016-01-21 18:55:18 +00:00
nativewidgets Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
popups Updated license headers 2016-01-21 18:55:18 +00:00
qmaccocoaviewcontainer Clean up our Objective-C usage 2018-02-20 10:02:12 +00:00
qsystemtrayicon Updated license headers 2016-01-21 18:55:18 +00:00
qt_on_cocoa Clean up our Objective-C usage 2018-02-20 10:02:12 +00:00
wheelevent Updated license headers 2016-01-21 18:55:18 +00:00