Fix unreachable QSKIP in QMenu autotest
The QSKIP is only reachable on Mac, so only compile it for Mac. Change-Id: I268e87829e01755051f81cdaf856d936b04b3d49 Reviewed-on: http://codereview.qt-project.org/6091 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
parent
18488067be
commit
edd377245a
@ -380,15 +380,12 @@ void tst_QMenu::focus()
|
|||||||
menu.addAction("One");
|
menu.addAction("One");
|
||||||
menu.addAction("Two");
|
menu.addAction("Two");
|
||||||
menu.addAction("Three");
|
menu.addAction("Three");
|
||||||
bool fullKeyboardControl = true;
|
|
||||||
|
|
||||||
#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
fullKeyboardControl = qt_tab_all_widgets;
|
if (!qt_tab_all_widgets)
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!fullKeyboardControl)
|
|
||||||
QSKIP("Computer is currently set up to NOT tab to all widgets,"
|
QSKIP("Computer is currently set up to NOT tab to all widgets,"
|
||||||
" this test assumes you can tab to all widgets", SkipAll);
|
" this test assumes you can tab to all widgets", SkipAll);
|
||||||
|
#endif
|
||||||
|
|
||||||
QWidget window;
|
QWidget window;
|
||||||
QPushButton button("Push me", &window);
|
QPushButton button("Push me", &window);
|
||||||
|
Loading…
Reference in New Issue
Block a user