diff options
author | Ian Walters <ian.walters@nokia.com> | 2009-05-14 04:24:59 (GMT) |
---|---|---|
committer | Ian Walters <ian.walters@nokia.com> | 2009-05-14 04:24:59 (GMT) |
commit | a8e4628a1f74b52a61b11b4b1fcc8ccdd4002a46 (patch) | |
tree | bac5b6e440ac7e5c7f9fe1eee53a75fb44a7e9dd /tests/auto/qtreewidget/tst_qtreewidget.cpp | |
parent | df69dfe0ec549a259ed78cf48dff898d8a044c41 (diff) | |
parent | 9820412d2551b655fec24ffde7b2a56e3ad168ea (diff) | |
download | Qt-a8e4628a1f74b52a61b11b4b1fcc8ccdd4002a46.zip Qt-a8e4628a1f74b52a61b11b4b1fcc8ccdd4002a46.tar.gz Qt-a8e4628a1f74b52a61b11b4b1fcc8ccdd4002a46.tar.bz2 |
Merge branch 'master' of ../master into contiguouscache
Diffstat (limited to 'tests/auto/qtreewidget/tst_qtreewidget.cpp')
-rw-r--r-- | tests/auto/qtreewidget/tst_qtreewidget.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/qtreewidget/tst_qtreewidget.cpp b/tests/auto/qtreewidget/tst_qtreewidget.cpp index c3595c2..906332c 100644 --- a/tests/auto/qtreewidget/tst_qtreewidget.cpp +++ b/tests/auto/qtreewidget/tst_qtreewidget.cpp @@ -136,6 +136,7 @@ private slots: void rootItemFlags(); void task218661_setHeaderData(); void task245280_sortChildren(); + void task253109_itemHeight(); // QTreeWidgetItem void itemOperatorLessThan(); @@ -2879,6 +2880,25 @@ void tst_QTreeWidget::task245280_sortChildren() QCOMPARE(top.child(i)->text(1), QString::number(i)); } +void tst_QTreeWidget::task253109_itemHeight() +{ + QTreeWidget treeWidget; + treeWidget.setColumnCount(1); + treeWidget.show(); + QTest::qWait(200); + + QTreeWidgetItem item(&treeWidget); + class MyWidget : public QWidget + { + virtual QSize sizeHint() const { return QSize(200,100); } + } w; + treeWidget.setItemWidget(&item, 0, &w); + + QTest::qWait(200); + QCOMPARE(w.geometry(), treeWidget.visualItemRect(&item)); + +} + void tst_QTreeWidget::task206367_duplication() { QTreeWidget treeWidget; |