Store information about focus reason in QQuickWindowPrivate
authorBerthold Krevert <berthold.krevert@basyskom.com>
Wed, 30 Apr 2014 18:33:07 +0000 (20:33 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 6 May 2014 08:31:34 +0000 (10:31 +0200)
commite8275c319fe9433682bc95716168c330a3ebdc88
tree4a1f831f9b2788b416c8e1995564bad4a164d989
parent2e6a3a83a82597598165167451018b9a3969965d
Store information about focus reason in QQuickWindowPrivate

QtQuickControl's Desktop style needs to know whether the last focus change
was requested by keyboard or not. With this information the Desktop style
is able to set the QStyleOption accordingly. Without the flag, some of
the QStyles (QFusionStyle, QGtkStyle) don't render a focus rectangle.

This patch is needed by #change,84389 in QtQuickControls

Change-Id: Ia06f56b018cd35eea933892a4c50e0aa7328042d
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Liang Qi <liang.qi@digia.com>
src/quick/items/qquickwindow.cpp
src/quick/items/qquickwindow_p.h
tests/auto/quick/qquickwindow/tst_qquickwindow.cpp