diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-03-30 19:04:16 +0200 |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-04-06 10:52:04 +0200 |
commit | db8dfc29de6bde8d4a4c65d8d5f7d3d579b859bb (patch) | |
tree | 76e2353dc1d35671463ad64ab87b78faa6a52f4a /tests/auto/qtableview/tst_qtableview.cpp | |
parent | 66f839869049bc98765bbdd8d1331c7abdf6d5df (diff) |
Sppedup QTreeView with spans.
Introduce an index to lookup spans in a certain index in a logaritmic
time instead of linear.
Behaviour change include that it is no longer possible to have spans
with height or with of 0 (but this made no sens anyway)
Reviewed-by: Marius Bugge Monsen
Task-number: 244651
Diffstat (limited to 'tests/auto/qtableview/tst_qtableview.cpp')
-rw-r--r-- | tests/auto/qtableview/tst_qtableview.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qtableview/tst_qtableview.cpp b/tests/auto/qtableview/tst_qtableview.cpp index a9b41d8f26..959515568a 100644 --- a/tests/auto/qtableview/tst_qtableview.cpp +++ b/tests/auto/qtableview/tst_qtableview.cpp @@ -2540,6 +2540,7 @@ void tst_QTableView::span_data() << 2 << 1 << false; + /* This makes no sens. QTest::newRow("top left 2x0") << 10 << 10 << -1 << -1 @@ -2554,7 +2555,7 @@ void tst_QTableView::span_data() << 0 << 0 << 0 << 2 << 0 << 2 - << false; + << false;*/ QTest::newRow("invalid 2x2") << 10 << 10 @@ -2628,7 +2629,7 @@ void tst_QTableView::span() view.hideRow(hiddenRow); view.hideColumn(hiddenColumn); view.show(); - + QCOMPARE(view.rowSpan(row, column), expectedRowSpan); QCOMPARE(view.columnSpan(row, column), expectedColumnSpan); |