From ce10188aa97cbb8f5945e169a2bca1407f8b825e Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Fri, 30 Jan 2015 11:23:56 +0100 Subject: Expose TabFocusBehavior in QStyleHints TabAllWidgets in QPlatformTheme is replaced by TabFocusBehavior. [ChangeLog][QtGui] Expose TabFocusBehavior in QStyleHints Change-Id: Iafaad7c6a5c6bc888d1e124e6ddcdbdc46f37b1c Reviewed-by: Shawn Rutledge Reviewed-by: Paul Olav Tvete --- src/gui/kernel/qstylehints.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/gui/kernel/qstylehints.cpp') diff --git a/src/gui/kernel/qstylehints.cpp b/src/gui/kernel/qstylehints.cpp index 0d9b886507..a0f98383ff 100644 --- a/src/gui/kernel/qstylehints.cpp +++ b/src/gui/kernel/qstylehints.cpp @@ -358,4 +358,18 @@ bool QStyleHints::setFocusOnTouchRelease() const return hint(QPlatformIntegration::SetFocusOnTouchRelease).toBool(); } +/*! + \property QStyleHints::tabFocusBehavior + \since 5.5 + \brief The focus behavior on press of the tab key. + + \note Do not bind this value in QML because the change notifier + signal is not implemented yet. +*/ + +Qt::TabFocusBehavior QStyleHints::tabFocusBehavior() const +{ + return Qt::TabFocusBehavior(themeableHint(QPlatformTheme::TabFocusBehavior, QPlatformIntegration::TabFocusBehavior).toInt()); +} + QT_END_NAMESPACE -- cgit v1.2.3