Emit signal when hiding due to focus loss to a non-related window.
This commit is contained in:
parent
3ebbedead2
commit
2591685579
@ -798,6 +798,7 @@ void Dialog::focusOutEvent(QFocusEvent *ev)
|
|||||||
if (!parentHasFocus && !childHasFocus) {
|
if (!parentHasFocus && !childHasFocus) {
|
||||||
qDebug() << "DIALOG: hiding dialog.";
|
qDebug() << "DIALOG: hiding dialog.";
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
|
emit windowDeactivated();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -169,6 +169,11 @@ Q_SIGNALS:
|
|||||||
void hideOnWindowDeactivateChanged();
|
void hideOnWindowDeactivateChanged();
|
||||||
void outputOnlyChanged();
|
void outputOnlyChanged();
|
||||||
void flagsChanged();
|
void flagsChanged();
|
||||||
|
/**
|
||||||
|
* Emitted when the @see hideOnWindowDeactivate property is @c true and this dialog lost focus to a
|
||||||
|
* window that is neither a parent dialog to nor a child dialog of this dialog.
|
||||||
|
*/
|
||||||
|
void windowDeactivated();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user