diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2013-03-07 22:10:51 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-13 18:40:26 +0100 |
commit | 9fe16e0ee92863c364fcb6f871b0691bbf43059a (patch) | |
tree | 08ac65b17ff0b6774c8154fe307ce2a6b7a8c3bb /src | |
parent | 3c2748afd58ef84d14b028fa43d193addb1add4c (diff) | |
download | qtbase-9fe16e0ee92863c364fcb6f871b0691bbf43059a.tar.gz |
Window deactivation should set focus reason.
Change-Id: Iccc46880278bc5f7fe2b706efcdf9b4e6483c3e6
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qguiapplication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 7d95a75f84..51d1d76302 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -1595,7 +1595,7 @@ void QGuiApplicationPrivate::processActivatedEvent(QWindowSystemInterfacePrivate return; if (previous) { - QFocusEvent focusOut(QEvent::FocusOut); + QFocusEvent focusOut(QEvent::FocusOut, e->reason); QCoreApplication::sendSpontaneousEvent(previous, &focusOut); QObject::disconnect(previous, SIGNAL(focusObjectChanged(QObject*)), qApp, SLOT(_q_updateFocusObject(QObject*))); |