qt5base-lts/tests/manual/cocoa/menurama
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
..
main.cpp Cocoa Menus: Add support for menu items in window-less apps 2018-05-23 18:09:28 +00:00
mainwindow.cpp QCocoaMenu: Attach menu items when updating the menubar 2017-11-05 01:39:30 +00:00
mainwindow.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
mainwindow.ui Cocoa Menus: Add support for menu items in window-less apps 2018-05-23 18:09:28 +00:00
menurama.pro Cocoa Menus: Introducing Menurama manual test 2016-08-19 03:04:28 +00:00
menuramaapplication.cpp Merge remote-tracking branch 'origin/5.10' into dev 2017-11-30 09:16:58 +01:00
menuramaapplication.h Menurama: Fix custom application class constructor signature 2017-11-17 13:30:40 +00:00