diff options
author | Liang Qi <liang.qi@theqtcompany.com> | 2015-02-04 09:10:06 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@theqtcompany.com> | 2015-02-12 13:30:04 +0000 |
commit | be84381664f3c6459ae70dce4ae12f2ee9b39c8f (patch) | |
tree | 65927640040a60ba14ef4b9de7f7fe7ca3538525 /src/widgets | |
parent | ce10188aa97cbb8f5945e169a2bca1407f8b825e (diff) |
Use TabFocusBehavior in QStyleHints in widgets
qt_tab_all_widgets in qapplication.cpp was updated.
Change-Id: If7ce14fc132d8a752c0e97450c4c8ecd75526f87
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/kernel/qapplication.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp index 7fff4389d3..d19087bd8d 100644 --- a/src/widgets/kernel/qapplication.cpp +++ b/src/widgets/kernel/qapplication.cpp @@ -432,9 +432,7 @@ inline bool QApplicationPrivate::isAlien(QWidget *widget) bool Q_WIDGETS_EXPORT qt_tab_all_widgets() { - if (const QPlatformTheme *theme = QGuiApplicationPrivate::platformTheme()) - return theme->themeHint(QPlatformTheme::TabAllWidgets).toBool(); - return true; + return QGuiApplication::styleHints()->tabFocusBehavior() == Qt::TabFocusAllControls; } // ######## move to QApplicationPrivate |