From be84381664f3c6459ae70dce4ae12f2ee9b39c8f Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Wed, 4 Feb 2015 09:10:06 +0100 Subject: [PATCH] Use TabFocusBehavior in QStyleHints in widgets qt_tab_all_widgets in qapplication.cpp was updated. Change-Id: If7ce14fc132d8a752c0e97450c4c8ecd75526f87 Reviewed-by: Shawn Rutledge Reviewed-by: J-P Nurmi --- src/widgets/kernel/qapplication.cpp | 4 +--- 1 file changed, 1 insertion(+), 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