diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-14 16:08:58 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-14 16:08:58 (GMT) |
commit | fad919927f2ab2ca3e9eebb59c5f3a9171b068a5 (patch) | |
tree | 2c490482c435e8215aafe76b625638dab6bc0d65 /tests/auto/qtableview/tst_qtableview.cpp | |
parent | 9b9e8ece43cf50a295a2a41f161be4231605e0b5 (diff) | |
download | Qt-fad919927f2ab2ca3e9eebb59c5f3a9171b068a5.zip Qt-fad919927f2ab2ca3e9eebb59c5f3a9171b068a5.tar.gz Qt-fad919927f2ab2ca3e9eebb59c5f3a9171b068a5.tar.bz2 |
Disable tst_QTableView::tabFocus to work when qt_tab_all_widget is disabled
Logic copied from the QMenu test
Also do the same in the QButtonGroup test
Diffstat (limited to 'tests/auto/qtableview/tst_qtableview.cpp')
-rw-r--r-- | tests/auto/qtableview/tst_qtableview.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qtableview/tst_qtableview.cpp b/tests/auto/qtableview/tst_qtableview.cpp index 78a0dfd..d92656c 100644 --- a/tests/auto/qtableview/tst_qtableview.cpp +++ b/tests/auto/qtableview/tst_qtableview.cpp @@ -3250,9 +3250,15 @@ void tst_QTableView::resizeToContents() } +QT_BEGIN_NAMESPACE + extern bool qt_tab_all_widgets; // qapplication_mac.cpp +QT_END_NAMESPACE void tst_QTableView::tabFocus() { + if (!qt_tab_all_widgets) + QSKIP("This test requires full keyboard control to be enabled.", SkipAll); + // QTableView enables tabKeyNavigation by default, but you should be able // to change focus on an empty table view, or on a table view that doesn't // have this property set. |