Update the window style when the modality changes on Cocoa
authorAndy Shaw <andy.shaw@digia.com>
Tue, 25 Sep 2012 05:04:01 +0000 (07:04 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 4 Oct 2012 09:58:48 +0000 (11:58 +0200)
commit595deca5c909d99a8cd157b9fb6c82c64b1db1f5
treea725366f91fac27c409270ce97cfe5365fec9613
parent1fb3d849e426fafcd5af30ce8ee6a00a10891746
Update the window style when the modality changes on Cocoa

On Cocoa if the modality of a dialog changes then the style of the
window needs to change to reflect this. So we add a variable to
cache the windows modality when it is created to compare against when
being made visible.

Task-number: QTBUG-22316
Change-Id: I7bfd016321510a9ec70ccb90672f5203a0f3a468
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/plugins/platforms/cocoa/qcocoawindow.h
src/plugins/platforms/cocoa/qcocoawindow.mm