diff options
-rw-r--r-- | tests/auto/qmenu/tst_qmenu.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/auto/qmenu/tst_qmenu.cpp b/tests/auto/qmenu/tst_qmenu.cpp index b20fb1645b..001d863d82 100644 --- a/tests/auto/qmenu/tst_qmenu.cpp +++ b/tests/auto/qmenu/tst_qmenu.cpp @@ -380,15 +380,12 @@ void tst_QMenu::focus() menu.addAction("One"); menu.addAction("Two"); menu.addAction("Three"); - bool fullKeyboardControl = true; #ifdef Q_WS_MAC - fullKeyboardControl = qt_tab_all_widgets; -#endif - - if (!fullKeyboardControl) + 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", SkipAll); +#endif QWidget window; QPushButton button("Push me", &window); |