summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2010-08-17 15:33:42 (GMT)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2010-08-17 15:35:10 (GMT)
commit749ad26d255327c9fa3fe857a30983cc6dfef0d9 (patch)
tree0d53ed881dc66122307a224425cd01d20d10bf9c /src
parent569b28760ba84a2cc5315bf06c173035dc14afc6 (diff)
downloadQt-749ad26d255327c9fa3fe857a30983cc6dfef0d9.zip
Qt-749ad26d255327c9fa3fe857a30983cc6dfef0d9.tar.gz
Qt-749ad26d255327c9fa3fe857a30983cc6dfef0d9.tar.bz2
Cocoa: revert parts of cc6dc0aeefde881a95f5fea2b26f2f3d7bdc6e15
The reason is that we tried to fix the stacking order of child windows while we fixed a crash. But the patch turned out to break an auto-test Reviewed-by: prasanth
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qwidget_mac.mm4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm
index 4ed4ccc..1979c84 100644
--- a/src/gui/kernel/qwidget_mac.mm
+++ b/src/gui/kernel/qwidget_mac.mm
@@ -2799,9 +2799,7 @@ void QWidgetPrivate::setSubWindowStacking(bool set)
if (set) {
if (parent->isVisible()) {
NSWindow *childwin = qt_mac_window_for(q);
- int childLevel = [childwin level];
[qt_mac_window_for(parent) addChildWindow:childwin ordered:NSWindowAbove];
- [childwin setLevel:childLevel];
}
} else {
[qt_mac_window_for(parent) removeChildWindow:qt_mac_window_for(q)];
@@ -2815,9 +2813,7 @@ void QWidgetPrivate::setSubWindowStacking(bool set)
if (child->isWindow() && child->testAttribute(Qt::WA_WState_Created) && child->isVisibleTo(q)) {
if (set) {
NSWindow *childwin = qt_mac_window_for(child);
- int childLevel = [childwin level];
[qt_mac_window_for(q) addChildWindow:childwin ordered:NSWindowAbove];
- [childwin setLevel:childLevel];
} else {
[qt_mac_window_for(q) removeChildWindow:qt_mac_window_for(child)];
}