summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2010-06-24 10:32:42 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2010-06-24 10:32:42 (GMT)
commit598ba59b9d2e4b28469088d4ef12407b0c27514a (patch)
tree664257f9b558069368928b937d6d30604814f673 /src
parentd63e7d8ec0c9337999a3d90b594eb3e955145de9 (diff)
downloadQt-598ba59b9d2e4b28469088d4ef12407b0c27514a.zip
Qt-598ba59b9d2e4b28469088d4ef12407b0c27514a.tar.gz
Qt-598ba59b9d2e4b28469088d4ef12407b0c27514a.tar.bz2
Child windows shown automatically when their parent is shown(Cocoa).
While setting up the stacking order for child windows, their hidden state was never taken into consideration. Task-number: QTBUG-11239 Reviewed-by: Richard Moe Gustavsen
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qwidget_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm
index 280712a..a9bb691 100644
--- a/src/gui/kernel/qwidget_mac.mm
+++ b/src/gui/kernel/qwidget_mac.mm
@@ -2804,7 +2804,7 @@ void QWidgetPrivate::setSubWindowStacking(bool set)
QList<QWidget *> widgets = q->findChildren<QWidget *>();
for (int i=0; i<widgets.size(); ++i) {
QWidget *child = widgets.at(i);
- if (child->isWindow() && child->testAttribute(Qt::WA_WState_Created)) {
+ if (child->isWindow() && child->testAttribute(Qt::WA_WState_Created) && child->isVisibleTo(q)) {
if (set)
[qt_mac_window_for(q) addChildWindow:qt_mac_window_for(child) ordered:NSWindowAbove];
else