summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-08-05 02:12:31 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-08-05 02:12:31 (GMT)
commit5a98d58c1ed78262c20b05aa178a92b4a1a097df (patch)
tree00c8c459c2bdbf438a35e5087250319d4766fe29 /src/gui/kernel/qapplication.cpp
parent7de5f19f0f62f181132394da6d7b2c8484cd42d9 (diff)
parent5749421fdaff0305d217712e3174c85a76b367c4 (diff)
downloadQt-5a98d58c1ed78262c20b05aa178a92b4a1a097df.zip
Qt-5a98d58c1ed78262c20b05aa178a92b4a1a097df.tar.gz
Qt-5a98d58c1ed78262c20b05aa178a92b4a1a097df.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'src/gui/kernel/qapplication.cpp')
-rw-r--r--src/gui/kernel/qapplication.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp
index 5c333b0..3303800 100644
--- a/src/gui/kernel/qapplication.cpp
+++ b/src/gui/kernel/qapplication.cpp
@@ -2540,6 +2540,13 @@ void QApplication::setActiveWindow(QWidget* act)
sendSpontaneousEvent(w, &activationChange);
}
+#ifdef QT_MAC_USE_COCOA
+ // In case the user clicked on a child window, we need to
+ // reestablish the stacking order of the window so
+ // it pops in front of other child windows in cocoa:
+ qt_cocoaStackChildWindowOnTopOfOtherChildren(window);
+#endif
+
for(int i = 0; i < toBeDeactivated.size(); ++i) {
QWidget *w = toBeDeactivated.at(i);
sendSpontaneousEvent(w, &windowDeactivate);