summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtableview/tst_qtableview.cpp
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2010-03-18 13:24:41 (GMT)
committerPaul Olav Tvete <paul.tvete@nokia.com>2010-03-18 13:24:41 (GMT)
commit1f8703d6faf855a96de0403f5926062bd2e2b3ee (patch)
treed27a75ff167c70bf8902bcde140632551e8cec79 /tests/auto/qtableview/tst_qtableview.cpp
parent349d2dd29cd6f4c90c1890e3f56850883f5ac07d (diff)
parent6dcdab8d9ee66f420a525400d873cfccf78c7003 (diff)
downloadQt-1f8703d6faf855a96de0403f5926062bd2e2b3ee.zip
Qt-1f8703d6faf855a96de0403f5926062bd2e2b3ee.tar.gz
Qt-1f8703d6faf855a96de0403f5926062bd2e2b3ee.tar.bz2
Merge remote branch 'qt/4.7' into lighthouse-4.7
Diffstat (limited to 'tests/auto/qtableview/tst_qtableview.cpp')
-rw-r--r--tests/auto/qtableview/tst_qtableview.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/auto/qtableview/tst_qtableview.cpp b/tests/auto/qtableview/tst_qtableview.cpp
index 35fba52..54e32218 100644
--- a/tests/auto/qtableview/tst_qtableview.cpp
+++ b/tests/auto/qtableview/tst_qtableview.cpp
@@ -201,6 +201,7 @@ private slots:
void taskQTBUG_5237_wheelEventOnHeader();
void taskQTBUG_8585_crashForNoGoodReason();
void taskQTBUG_7774_RtoLVisualRegionForSelection();
+ void taskQTBUG_8777_scrollToSpans();
void mouseWheel_data();
void mouseWheel();
@@ -3994,7 +3995,6 @@ void tst_QTableView::taskQTBUG_8585_crashForNoGoodReason()
}
}
-
class TableView7774 : public QTableView
{
public:
@@ -4020,5 +4020,19 @@ void tst_QTableView::taskQTBUG_7774_RtoLVisualRegionForSelection()
QCOMPARE(region.rects().at(0), view.visualRect(range.topLeft()) | view.visualRect(range.bottomRight()));
}
+void tst_QTableView::taskQTBUG_8777_scrollToSpans()
+{
+ QTableWidget table(75,5);
+ for (int i=0; i<50; i++)
+ table.setSpan(2+i, 0, 1, 5);
+ table.setCurrentCell(0,2);
+ table.show();
+
+ for (int i = 0; i < 45; ++i)
+ QTest::keyClick(&table, Qt::Key_Down);
+
+ QVERIFY(table.verticalScrollBar()->value() > 10);
+}
+
QTEST_MAIN(tst_QTableView)
#include "tst_qtableview.moc"