From 06332df7438c8d2215b02f1e01ce2ed28a49a320 Mon Sep 17 00:00:00 2001 From: Gabriel de Dietrich Date: Tue, 9 Oct 2012 11:27:01 +0200 Subject: Mac: Bring back "Text boxes and list only" tab navigation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added ThemeHint::TabAllWidgets as a mean to access that platform specific bool. The default implementation returns always true when querying QPlatformTheme::themeHint(). Several auto-tests had to be updated to reflect for qt_tab_all_widgets' type change. One XFAIL removed from tst_QApplication::focusChanged(). Task-number: QTBUG-24372 Change-Id: Ie1f0486c19898fe54c53aa4a27e378485075e512 Reviewed-by: Morten Johan Sørvig --- tests/auto/widgets/widgets/qmenu/tst_qmenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/auto/widgets/widgets/qmenu') diff --git a/tests/auto/widgets/widgets/qmenu/tst_qmenu.cpp b/tests/auto/widgets/widgets/qmenu/tst_qmenu.cpp index bcd7f4fdcc..b159d0e6c3 100644 --- a/tests/auto/widgets/widgets/qmenu/tst_qmenu.cpp +++ b/tests/auto/widgets/widgets/qmenu/tst_qmenu.cpp @@ -366,7 +366,7 @@ void tst_QMenu::keyboardNavigation() #ifdef Q_OS_MAC QT_BEGIN_NAMESPACE - extern bool qt_tab_all_widgets; // from qapplication.cpp +extern bool qt_tab_all_widgets(); // from qapplication.cpp QT_END_NAMESPACE #endif @@ -378,7 +378,7 @@ void tst_QMenu::focus() menu.addAction("Three"); #ifdef Q_OS_MAC - if (!qt_tab_all_widgets) + if (!qt_tab_all_widgets()) QSKIP("Computer is currently set up to NOT tab to all widgets," " this test assumes you can tab to all widgets"); #endif -- cgit v1.2.3