diff options
author | Liang Qi <liang.qi@theqtcompany.com> | 2015-02-04 10:37:08 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-02-13 08:12:23 +0000 |
commit | d28a02aec9a1632f2263d9276099454b33fb6741 (patch) | |
tree | c52ae2dadcb1873d7e65ed0d1312970048f58699 /tests/auto/activeFocusOnTab | |
parent | 1a5413df3d9a0602f074562e2e92751df369d016 (diff) | |
download | qtquickcontrols-d28a02aec9a1632f2263d9276099454b33fb6741.tar.gz |
Use TabFocusBehavior in QStyleHints in QtQuick.Controls
The all usages of qt_tab_all_widgets in test were updated.
Change-Id: I35393c67f183c4e0695e869553007ea00d38c06a
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests/auto/activeFocusOnTab')
-rw-r--r-- | tests/auto/activeFocusOnTab/tst_activeFocusOnTab.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/activeFocusOnTab/tst_activeFocusOnTab.cpp b/tests/auto/activeFocusOnTab/tst_activeFocusOnTab.cpp index f91e1842..9f202b34 100644 --- a/tests/auto/activeFocusOnTab/tst_activeFocusOnTab.cpp +++ b/tests/auto/activeFocusOnTab/tst_activeFocusOnTab.cpp @@ -42,7 +42,7 @@ #include <QtQuick/qquickview.h> #include <QtQuick/private/qquickitem_p.h> #include <QtGui/private/qguiapplication_p.h> -#include <QtGui/qpa/qplatformtheme.h> +#include <QtGui/qstylehints.h> #include "../shared/util.h" #include "../shared/visualtestutil.h" @@ -63,9 +63,7 @@ private slots: private: QQmlEngine engine; bool qt_tab_all_widgets() { - if (const QPlatformTheme *theme = QGuiApplicationPrivate::platformTheme()) - return theme->themeHint(QPlatformTheme::TabAllWidgets).toBool(); - return true; + return QGuiApplication::styleHints()->tabFocusBehavior() == Qt::TabFocusAllControls; } }; |