diff options
author | Gabriel de Dietrich <gabriel.dedietrich@qt.io> | 2016-07-07 14:33:30 -0700 |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dedietrich@qt.io> | 2016-07-08 20:18:20 +0000 |
commit | 38b09d34210805766afa8bdd6a1ef413447a89ed (patch) | |
tree | a1c7b0a2e2ac1d5af1148588a728d907a1f8f041 /mkspecs/win32-icc | |
parent | 6bafb9da71044d99a95a591f7872b8b2fd97174a (diff) |
QCocoaMenu: Attach late items to their submenu
Because the QMenu::aboutToShow() signal is emitted
way after -[QCocoaMenuDelegate menu:updateItem:
atIndex:shouldCancel:], we miss the opportunity to
attach the submenu to the menu item.
The solution is to track the "open" state of the
NSMenu. Then, if any submenu item gets added while
the NSMenu is open, then we immediately attach the
native item to the menu.
Change-Id: I1f3a84ed3832520344da07e06cb3483ad6bd4ffd
Task-number: QTBUG-54633
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'mkspecs/win32-icc')
0 files changed, 0 insertions, 0 deletions