diff options
Diffstat (limited to 'tests/auto/qitemdelegate/tst_qitemdelegate.cpp')
-rw-r--r-- | tests/auto/qitemdelegate/tst_qitemdelegate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qitemdelegate/tst_qitemdelegate.cpp b/tests/auto/qitemdelegate/tst_qitemdelegate.cpp index e6d6df3..5d1034a 100644 --- a/tests/auto/qitemdelegate/tst_qitemdelegate.cpp +++ b/tests/auto/qitemdelegate/tst_qitemdelegate.cpp @@ -475,7 +475,7 @@ void tst_QItemDelegate::font() QApplication::sendPostedEvents(); //glib workaround #endif - QCOMPARE(delegate->displayText, item->text()); + QTRY_COMPARE(delegate->displayText, item->text()); if (properties.contains("italic")) { QCOMPARE(delegate->displayFont.italic(), item->font().italic()); } @@ -1163,7 +1163,7 @@ void tst_QItemDelegate::task257859_finalizeEdit() QCOMPARE(editor->hasFocus(), true); QDialog dialog; - QTimer::singleShot(100, &dialog, SLOT(close())); + QTimer::singleShot(500, &dialog, SLOT(close())); dialog.exec(); QTRY_VERIFY(!editor); } |