diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-11-05 14:49:39 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-11-05 14:49:39 (GMT) |
commit | 8c7180dd0ed9bd13724c75dc26f0fb18b0f48e7c (patch) | |
tree | 2bf59949a5d7156e38cdcc46c7a14bb666ac7447 /tests/auto/qtableview/tst_qtableview.cpp | |
parent | 488a2972be67239a14954e9feb61b855c841d010 (diff) | |
parent | 393f53184a35f380ddd7cf44a0947c2309c373bc (diff) | |
download | Qt-8c7180dd0ed9bd13724c75dc26f0fb18b0f48e7c.zip Qt-8c7180dd0ed9bd13724c75dc26f0fb18b0f48e7c.tar.gz Qt-8c7180dd0ed9bd13724c75dc26f0fb18b0f48e7c.tar.bz2 |
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-widget-team into 4.6
Diffstat (limited to 'tests/auto/qtableview/tst_qtableview.cpp')
-rw-r--r-- | tests/auto/qtableview/tst_qtableview.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/qtableview/tst_qtableview.cpp b/tests/auto/qtableview/tst_qtableview.cpp index 227ca6f..f571e8a 100644 --- a/tests/auto/qtableview/tst_qtableview.cpp +++ b/tests/auto/qtableview/tst_qtableview.cpp @@ -197,6 +197,7 @@ private slots: void task259308_scrollVerticalHeaderSwappedSections(); void task191545_dragSelectRows(); void taskQTBUG_5062_spansInconsistency(); + void taskQTBUG_4516_clickOnRichTextLabel(); void mouseWheel_data(); void mouseWheel(); @@ -3885,6 +3886,24 @@ void tst_QTableView::taskQTBUG_5062_spansInconsistency() VERIFY_SPANS_CONSISTENCY(&view); } +void tst_QTableView::taskQTBUG_4516_clickOnRichTextLabel() +{ + QTableView view; + QStandardItemModel model(5,5); + view.setModel(&model); + QLabel label("rich text"); + label.setTextFormat(Qt::RichText); + view.setIndexWidget(model.index(1,1), &label); + view.setCurrentIndex(model.index(0,0)); + QCOMPARE(view.currentIndex(), model.index(0,0)); + + QTest::mouseClick(&label, Qt::LeftButton); + QCOMPARE(view.currentIndex(), model.index(1,1)); + + +} + + void tst_QTableView::changeHeaderData() { QTableView view; |