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>
bb10
Liang Qi 2015-02-04 09:10:06 +01:00
parent ce10188aa9
commit be84381664
1 changed files with 1 additions and 3 deletions

View File

@ -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