Don't hide when focus moves to a child window.
REVIEW:117897
This commit is contained in:
parent
af5a855da4
commit
000d49463b
@ -777,7 +777,9 @@ void Dialog::focusInEvent(QFocusEvent *ev)
|
|||||||
|
|
||||||
void Dialog::focusOutEvent(QFocusEvent *ev)
|
void Dialog::focusOutEvent(QFocusEvent *ev)
|
||||||
{
|
{
|
||||||
if (d->hideOnWindowDeactivate) {
|
const QWindow *focusWindow = QGuiApplication::focusWindow();
|
||||||
|
|
||||||
|
if (d->hideOnWindowDeactivate && !(focusWindow && focusWindow->isActive() && isAncestorOf(focusWindow))) {
|
||||||
qDebug() << "DIALOG: hiding dialog.";
|
qDebug() << "DIALOG: hiding dialog.";
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user