diff options
author | Dominik Holland <dominik.holland@nokia.com> | 2010-07-22 14:37:07 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2010-11-02 14:23:53 (GMT) |
commit | affe4a42dea9c72bf220e7e57d427a79b6fd099f (patch) | |
tree | 2390ad228366b4ac88410a105f611dbaff5f53d1 /tests/auto/qtreewidget | |
parent | 185cf9f10500dc26a5fda44ca38ebeb470218cf3 (diff) | |
download | Qt-affe4a42dea9c72bf220e7e57d427a79b6fd099f.zip Qt-affe4a42dea9c72bf220e7e57d427a79b6fd099f.tar.gz Qt-affe4a42dea9c72bf220e7e57d427a79b6fd099f.tar.bz2 |
Fixed QTreeWidget autotest, to use a top level dummy widget
Diffstat (limited to 'tests/auto/qtreewidget')
-rw-r--r-- | tests/auto/qtreewidget/tst_qtreewidget.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qtreewidget/tst_qtreewidget.cpp b/tests/auto/qtreewidget/tst_qtreewidget.cpp index 1e37384..77d353d 100644 --- a/tests/auto/qtreewidget/tst_qtreewidget.cpp +++ b/tests/auto/qtreewidget/tst_qtreewidget.cpp @@ -3098,8 +3098,9 @@ void tst_QTreeWidget::task253109_itemHeight() void tst_QTreeWidget::task206367_duplication() { - QTreeWidget treeWidget; - treeWidget.show(); + QWidget topLevel; + QTreeWidget treeWidget(&topLevel); + topLevel.show(); treeWidget.resize(200, 200); treeWidget.setSortingEnabled(true); |