qt5base-lts/tests/manual/cocoa
Gabriel de Dietrich 385589ef45 QCocoaMenu: Attach menu items when updating the menubar
Instead of waiting for the menu delegate to update each item,
we can attach an NSMenu to its NSMenuItem as soon as we update
the current window's menubar. This is safe to do because we
know that this is going to be the main menubar right after, so
we're not orphaning any NSMenuItem from its NSMenu at the wrong
moment.

By doing this, we also ensure that all menus from the active
menubar are reachable by the key-equivalent dispatching logic,
even before we display the actual menu.

This was shown in BigMenuCreator where, under the menubar's ASP
and SAP menus, all A*S submenus would be disabled. Furthermore,
on the same menus, SAP would show the same issue.

Added test in Menurama as well.

Change-Id: If6e7311072e6b53ad1cbced73623d1832aa0df8e
Task-number: QTBUG-57076
Task-number: QTBUG-63712
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
2017-11-05 01:39:30 +00:00
..
appicon Updated license headers 2016-01-21 18:55:18 +00:00
menurama QCocoaMenu: Attach menu items when updating the menubar 2017-11-05 01:39:30 +00:00
menus Updated license headers 2016-01-21 18:55:18 +00:00
nativewidgets Updated license headers 2016-01-21 18:55:18 +00:00
popups Updated license headers 2016-01-21 18:55:18 +00:00
qmaccocoaviewcontainer Implement QMacCocoaViewContainer in terms of foreign window 2016-10-05 19:37:17 +00:00
qsystemtrayicon Updated license headers 2016-01-21 18:55:18 +00:00
qt_on_cocoa Updated license headers 2016-01-21 18:55:18 +00:00
wheelevent Updated license headers 2016-01-21 18:55:18 +00:00