diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-09-05 01:26:46 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-09-05 01:30:04 (GMT) |
commit | b504a21a7d62b24ac5f16cb3f1a88479da1499d5 (patch) | |
tree | 1b5236c294246874a2fde0157b06dfd23feb00e9 /tests | |
parent | a522568283195cd4b851b190d249d33e25489642 (diff) | |
parent | d35fe5bb21008ab30c76ebd2fe688ea3e35c084e (diff) | |
download | Qt-b504a21a7d62b24ac5f16cb3f1a88479da1499d5.zip Qt-b504a21a7d62b24ac5f16cb3f1a88479da1499d5.tar.gz Qt-b504a21a7d62b24ac5f16cb3f1a88479da1499d5.tar.bz2 |
Merge branch '4.5' into 4.6
Conflicts:
src/gui/itemviews/qlistview.cpp
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qlistview/tst_qlistview.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/qlistview/tst_qlistview.cpp b/tests/auto/qlistview/tst_qlistview.cpp index 2281fb7..c598aeb 100644 --- a/tests/auto/qlistview/tst_qlistview.cpp +++ b/tests/auto/qlistview/tst_qlistview.cpp @@ -424,6 +424,18 @@ void tst_QListView::hideRows() view.setRowHidden(0, false); QVERIFY(!view.isRowHidden(0)); + QStandardItemModel sim(0); + QStandardItem *root = new QStandardItem("Root row"); + for (int i=0;i<5;i++) + root->appendRow(new QStandardItem(QString("Row %1").arg(i))); + sim.appendRow(root); + view.setModel(&sim); + view.setRootIndex(root->index()); + QVERIFY(!view.isRowHidden(0)); + view.setRowHidden(0, true); + QVERIFY(view.isRowHidden(0)); + view.setRowHidden(0, false); + QVERIFY(!view.isRowHidden(0)); } |