FocusAboutToChange event to be send before focus changes
authorPekka Vuorela <pekka.ta.vuorela@nokia.com>
Thu, 1 Mar 2012 14:54:50 +0000 (16:54 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 22 Mar 2012 15:13:21 +0000 (16:13 +0100)
commit7e90df7bf5aafd09ea5ed8bcc370db6a8912d173
treeaf527348997c94a4b7362e99a0a4aecfaf144489
parent045c79f5ed6960109f9ebf76775fa1289c5080b0
FocusAboutToChange event to be send before focus changes

Focus change happen as: FocusAboutToChange event -> focus change
-> FocusOut event -> FocusIn event.

Input method need to have focus when calling commit(). Notification
on focus about to be lost allows QWindow implementations to commit in
time.

Also changes QWidget documentation to match code reality.

Change-Id: I17a8a374a33dd700909f79e370b42348869261a6
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/corelib/kernel/qcoreevent.h
src/gui/kernel/qguiapplication.cpp
src/widgets/kernel/qapplication.cpp
src/widgets/kernel/qwidget.cpp
src/widgets/kernel/qwidget_p.h
src/widgets/kernel/qwidgetwindow_qpa.cpp
tests/auto/gui/kernel/qguiapplication/tst_qguiapplication.cpp
tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp