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:
parent
6d996dd74d
commit
0916394126
@ -542,11 +542,10 @@ void QWidgetPrivate::hide_sys()
|
|||||||
if (p &&p->isVisible()) {
|
if (p &&p->isVisible()) {
|
||||||
invalidateBuffer(q->rect());
|
invalidateBuffer(q->rect());
|
||||||
}
|
}
|
||||||
return;
|
} else {
|
||||||
|
invalidateBuffer(q->rect());
|
||||||
}
|
}
|
||||||
|
|
||||||
invalidateBuffer(q->rect());
|
|
||||||
|
|
||||||
if (window)
|
if (window)
|
||||||
window->setVisible(false);
|
window->setVisible(false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user