QtWidgets: Make QWidgetWindow disappear when its associate QWidget hides

Task-number: QTBUG-25980
Change-Id: I572eb9dd175121b1f1b6070e1849247000b48961
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Debao Zhang 2012-05-31 10:39:43 -07:00 committed by Qt by Nokia
parent 6d996dd74d
commit 0916394126

View File

@ -542,11 +542,10 @@ void QWidgetPrivate::hide_sys()
if (p &&p->isVisible()) {
invalidateBuffer(q->rect());
}
return;
} else {
invalidateBuffer(q->rect());
}
invalidateBuffer(q->rect());
if (window)
window->setVisible(false);
}