diff options
author | Berthold Krevert <berthold.krevert@basyskom.com> | 2014-04-30 20:33:07 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-06 10:31:34 +0200 |
commit | e8275c319fe9433682bc95716168c330a3ebdc88 (patch) | |
tree | 4a1f831f9b2788b416c8e1995564bad4a164d989 /src/quick/items/qquickwindow_p.h | |
parent | 2e6a3a83a82597598165167451018b9a3969965d (diff) |
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>
Diffstat (limited to 'src/quick/items/qquickwindow_p.h')
-rw-r--r-- | src/quick/items/qquickwindow_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/items/qquickwindow_p.h b/src/quick/items/qquickwindow_p.h index 218425c08c..8faaf6489b 100644 --- a/src/quick/items/qquickwindow_p.h +++ b/src/quick/items/qquickwindow_p.h @@ -227,6 +227,8 @@ public: uint lastWheelEventAccepted : 1; bool componentCompleted : 1; + Qt::FocusReason lastFocusReason; + QOpenGLFramebufferObject *renderTarget; uint renderTargetId; QSize renderTargetSize; |