diff options
author | Gabriel de Dietrich <gabriel.dedietrich@digia.com> | 2014-04-01 18:18:17 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-18 11:05:25 +0200 |
commit | c7bd85e97df1b188bcbd4a2a511313d221c5bb83 (patch) | |
tree | 757f1fea25705524b6fbdf280fd68dadb5aa602d /src/xml/sax | |
parent | 454dc332b3856c1726683595575c34281650a469 (diff) |
Cocoa: NSMenu views never get viewDidUnhide called
This is the case for QWidgets added as native menu items with
QWidgetAction. According to Cocoa's documentation [1], we should
rely on -[QNSView viewDidMoveToWindow] instead.
On 10.9 however, we receive NSWindowDidChangeOcclusionStateNotification
from the NSMenu window, which is preferable to using -[QNSView
viewDidMoveToWindow] as it guarantees the view is actually visible.
We do runtime symbol lookup to get this to work on 10.9 regardless
of the build SDK version.
[1] https://developer.apple.com/library/mac/documentation/cocoa/Conceptual/MenuList/Articles/ViewsInMenuItems.html
Task-number: QTBUG-19840
Change-Id: If4676df5d79c359965f09ef2e5eddf4c925e3533
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Diffstat (limited to 'src/xml/sax')
0 files changed, 0 insertions, 0 deletions