diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2010-01-14 12:21:21 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2010-01-15 14:02:22 (GMT) |
commit | 27ed53bbdcbb8ee9c9916bf90e5c9fe8157091ec (patch) | |
tree | 1639baa18d6300466a1f7035233ff0a41be2a927 /src/gui/kernel/qwidget_p.h | |
parent | 2d1f2bbfa6def2afdf8cc53e4521c4c74c9b1769 (diff) | |
download | Qt-27ed53bbdcbb8ee9c9916bf90e5c9fe8157091ec.zip Qt-27ed53bbdcbb8ee9c9916bf90e5c9fe8157091ec.tar.gz Qt-27ed53bbdcbb8ee9c9916bf90e5c9fe8157091ec.tar.bz2 |
Cococa: QDialogs stays on top when application is not active
At one point in history, we decided that QDialogs should stack just
above normal windows. This patch reverts this behaviour, as cocoa
gets confused if we stack a dialog at this level without telling it
to be modal. So instead, we let cocoa set the modal window level when
we create a modal session, and also let cocoa restore the level to
what it were when the sessions ends. That way, we avoid doing the work
that cocoa is allready designed to do.
Task-number: QTBUG-5057
Reviewed-by: msorvig
Diffstat (limited to 'src/gui/kernel/qwidget_p.h')
-rw-r--r-- | src/gui/kernel/qwidget_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_p.h b/src/gui/kernel/qwidget_p.h index f3edf21..318a87a 100644 --- a/src/gui/kernel/qwidget_p.h +++ b/src/gui/kernel/qwidget_p.h @@ -761,6 +761,7 @@ public: void initWindowPtr(); void finishCreateWindow_sys_Carbon(OSWindowRef windowRef); #else + void setWindowLevel(); void finishCreateWindow_sys_Cocoa(void * /*NSWindow * */ windowRef); void syncCocoaMask(); void finishCocoaMaskSetup(); |