diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-03 18:33:55 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-03 20:08:56 (GMT) |
commit | 4c501d7fce503a610edabfba5d6efc3ef2778bef (patch) | |
tree | b7ed63c2d8b155fccd513501252a1270db14af05 | |
parent | 437b4f6d44beeb48679da86a0a8eb825ba86c7db (diff) | |
download | Qt-4c501d7fce503a610edabfba5d6efc3ef2778bef.zip Qt-4c501d7fce503a610edabfba5d6efc3ef2778bef.tar.gz Qt-4c501d7fce503a610edabfba5d6efc3ef2778bef.tar.bz2 |
Fix tst_QTableView with skulpture style
-rw-r--r-- | tests/auto/qtableview/tst_qtableview.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qtableview/tst_qtableview.cpp b/tests/auto/qtableview/tst_qtableview.cpp index 39ab4c6..6fe2963 100644 --- a/tests/auto/qtableview/tst_qtableview.cpp +++ b/tests/auto/qtableview/tst_qtableview.cpp @@ -2487,6 +2487,11 @@ void tst_QTableView::indexAt() QtTestTableView view; view.show(); + + //some styles change the scroll mode in their polish + view.setHorizontalScrollMode(QAbstractItemView::ScrollPerItem); + view.setVerticalScrollMode(QAbstractItemView::ScrollPerItem); + view.setModel(&model); view.setSpan(row, column, rowSpan, columnSpan); view.hideRow(hiddenRow); @@ -3143,6 +3148,10 @@ void tst_QTableView::task240266_veryBigColumn() table.show(); QTest::qWait(100); + //some styles change the scroll mode in their polish + table.setHorizontalScrollMode(QAbstractItemView::ScrollPerItem); + table.setVerticalScrollMode(QAbstractItemView::ScrollPerItem); + QScrollBar *scroll = table.horizontalScrollBar(); QCOMPARE(scroll->minimum(), 0); QCOMPARE(scroll->maximum(), model.columnCount() - 1); |