aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickcontrol_p_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-11-29 23:35:17 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-12 17:47:21 +0000
commit691366a678640448c1dcb04f5297f637919aa220 (patch)
tree8931979e244b489d4e1bb60d7d79c80e561871e5 /src/templates/qquickcontrol_p_p.h
parent0cb8763ca7dc3190a797563ff64c35f9208aa9c8 (diff)
Add QQuickControl::focusReason
This allows the Universal style ApplicationWindow to visualize key/tab focus with a focus rectangle, but hide the focus rectangle when the focus moves around for other reasons (mouse, active window, popups...) Change-Id: I5c5b43d7c4c051679e34b806ee43cd80180d7ab8 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickcontrol_p_p.h')
-rw-r--r--src/templates/qquickcontrol_p_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/templates/qquickcontrol_p_p.h b/src/templates/qquickcontrol_p_p.h
index f0cc402a..79824545 100644
--- a/src/templates/qquickcontrol_p_p.h
+++ b/src/templates/qquickcontrol_p_p.h
@@ -115,6 +115,7 @@ public:
qreal bottomPadding;
qreal spacing;
QLocale locale;
+ Qt::FocusReason focusReason;
QQuickItem *background;
QQuickItem *contentItem;
QQuickAccessibleAttached *accessibleAttached;