Implement QCocoaWindow::setWindowState.
authorMorten Johan Sorvig <morten.sorvig@nokia.com>
Wed, 21 Mar 2012 10:07:35 +0000 (11:07 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 20 Apr 2012 08:29:14 +0000 (10:29 +0200)
commit128b7c56b732cabdbd600445aac5162c775e58d4
treec6699b97cdd9522bb24cf8588810c12d03dd60bc
parent872f567d530daad7d897767fd56e061d8f4e5f36
Implement QCocoaWindow::setWindowState.

Add window state change notification logic. Send
and expose event in addition to window state change
on window restore since the QWidget logic expects
this.

Modify QCocoaWindow::setVisible to sync up window
state that may have been set on the hidden window.

Refactor NSWindow event observing to use one observer
function for all notifications.

Add window state testing to tests/manual/windowflags
Add delay after showFullScreen in tst_qstatusbar to
wait for the Lion fullscreen transition.

Change-Id: I57c523cedd0644d4181b40d72046fad4fdb09a9c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/plugins/platforms/cocoa/qcocoawindow.h
src/plugins/platforms/cocoa/qcocoawindow.mm
src/plugins/platforms/cocoa/qnsview.h
src/plugins/platforms/cocoa/qnsview.mm
tests/auto/widgets/widgets/qstatusbar/tst_qstatusbar.cpp
tests/manual/windowflags/controllerwindow.cpp
tests/manual/windowflags/controllerwindow.h
tests/manual/windowflags/previewwindow.cpp
tests/manual/windowflags/previewwindow.h
tests/manual/windowflags/windowflags.pro