diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-10-06 15:50:29 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-10-16 17:22:21 +0000 |
commit | ac35f9c44c0fb3b2f40ae5585c497200b2ba743d (patch) | |
tree | adcb532550ace44bdf3115b5e465e09aa44ed292 /src/gui/opengl/qopenglfunctions_4_5_compatibility.h | |
parent | ed9340a926aabcf3bf98091ed0436d6b02dd2c14 (diff) |
macOS: Mark the widget's container as embedded when placed into NSMenuItemv5.10.0-beta2
Otherwise we'll end up creating a NSPanel for the QMacNativeWidget which is
never closed, even if the backing NSView is moved to a new superview.
Ideally this would be based on [NSView viewDidMoveToSuperview] and
[NSView viewDidMoveToWindow], with retain/releases of the corresponding
NSWindow, but that needs more research, especially as AppKit on macOS
10.13 will always keep a strong reference to the NSWindow.
Task-number: QTBUG-63443
Change-Id: I9eec5ea871373d00dedf154600bf7005898cf37a
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/gui/opengl/qopenglfunctions_4_5_compatibility.h')
0 files changed, 0 insertions, 0 deletions