qt5base-lts/tests/manual/cocoa/qt_on_cocoa
Tor Arne Vestbø 49154acde3 macOS: Deliver NSWindow notifications to all windows, not just top level
Child QWindows (or in the case of QWindows embedded in native applications:
top level QWindows where the corresponding NSView is a child of another
view, so not being the contentView of its window), still need some of the
NSWindow notifications to e.g. update their exposed state when the window
becomes visible.

We make sure to send the notification to all QCococaWindow children of
the relevant NSWindow, and let each callback decide if it should only
apply to content views.

This fixes an issue where a QWindow would never be exposed if the window
was a child NSView and added to a NSWindow that was yet to be shown.

Change-Id: I7f7df8bc5f4ca3ac553a2c146f8c3229b197c059
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
2017-09-26 12:50:05 +00:00
..
main.mm macOS: Deliver NSWindow notifications to all windows, not just top level 2017-09-26 12:50:05 +00:00
qt_on_cocoa.pro Link to AppKit instead of Cocoa. 2015-09-05 11:49:17 +00:00
rasterwindow.cpp macOS: Deliver NSWindow notifications to all windows, not just top level 2017-09-26 12:50:05 +00:00
rasterwindow.h macOS: Update qt_on_cocoa manual test 2017-08-31 23:09:24 +00:00