From 7a763f19996bc892a63d021e64c570cbfb13f391 Mon Sep 17 00:00:00 2001 From: Dominik Holland Date: Tue, 27 Jul 2010 09:33:13 +0200 Subject: Fixed QTreeWidget autotest. Added qWaitForWindowShown() --- tests/auto/qtreewidget/tst_qtreewidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/qtreewidget/tst_qtreewidget.cpp b/tests/auto/qtreewidget/tst_qtreewidget.cpp index 77d353d..32bf557 100644 --- a/tests/auto/qtreewidget/tst_qtreewidget.cpp +++ b/tests/auto/qtreewidget/tst_qtreewidget.cpp @@ -464,6 +464,7 @@ void tst_QTreeWidget::editItem() QTreeWidget tree; populate(&tree, topLevelItems, new TreeItem(QStringList() << "1" << "2")); tree.show(); + QTest::qWaitForWindowShown(&tree); QSignalSpy itemChangedSpy( &tree, SIGNAL(itemChanged(QTreeWidgetItem*,int))); -- cgit v0.12