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>
bb10
Frederik Gladhorn 2013-03-07 22:10:51 +01:00 committed by The Qt Project
parent 3c2748afd5
commit 9fe16e0ee9
1 changed files with 1 additions and 1 deletions

View File

@ -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*)));