Cocoa: Fix beep-on-show for Creator menus.
authorMorten Johan Sorvig <morten.sorvig@nokia.com>
Thu, 26 Apr 2012 10:29:01 +0000 (12:29 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 30 Apr 2012 12:01:22 +0000 (14:01 +0200)
commit4e59daf34f57dffb1caddb46799ea4e866a640ff
tree36ad4da12aff41134c85d1ea90af6e83c1adef28
parentb7cd9647618d63162a0c923437d86813fa90e11b
Cocoa: Fix beep-on-show for Creator menus.

Maintain a current window state variable in QCocoaWindnow
and use it when setting the new window state on the
NSWindow.

The NSWindow state accessors can apparently not be
trusted, in particular isZoomed always returns true
for the Creator popup menu.

Change-Id: I78f13de251f3730752813bba17459011f8558aee
Reviewed-by: James Turner <james.turner@kdab.com>
Reviewed-by: Christoph Schleifenbaum <christoph.schleifenbaum@kdab.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
src/plugins/platforms/cocoa/qcocoawindow.h
src/plugins/platforms/cocoa/qcocoawindow.mm