diff options
author | Andy Shaw <andy.shaw@digia.com> | 2012-09-25 07:04:01 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-04 11:58:48 +0200 |
commit | 595deca5c909d99a8cd157b9fb6c82c64b1db1f5 (patch) | |
tree | a725366f91fac27c409270ce97cfe5365fec9613 /src/plugins/platforms/cocoa/qcocoawindow.h | |
parent | 1fb3d849e426fafcd5af30ce8ee6a00a10891746 (diff) |
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>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoawindow.h')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoawindow.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoawindow.h b/src/plugins/platforms/cocoa/qcocoawindow.h index 20648e8c61..4a146767d5 100644 --- a/src/plugins/platforms/cocoa/qcocoawindow.h +++ b/src/plugins/platforms/cocoa/qcocoawindow.h @@ -157,6 +157,7 @@ public: // for QNSView NSWindow *m_nsWindow; Qt::WindowFlags m_windowFlags; Qt::WindowState m_synchedWindowState; + Qt::WindowModality m_windowModality; QPointer<QWindow> m_activePopupWindow; bool m_inConstructor; |