tst_qitemdelegate: make the test more robust
Change-Id: Ieb05d7a05d5d8f6f652a0351deba7208d0770dd6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
This commit is contained in:
parent
a7111c5dde
commit
e3240214e4
@ -782,10 +782,8 @@ void tst_QItemDelegate::dateTimeEditor()
|
|||||||
widget.setFocus();
|
widget.setFocus();
|
||||||
widget.editItem(item2);
|
widget.editItem(item2);
|
||||||
|
|
||||||
QTestEventLoop::instance().enterLoop(1);
|
QTRY_VERIFY(widget.viewport()->findChild<QDateEdit *>());
|
||||||
|
|
||||||
QDateEdit *dateEditor = widget.viewport()->findChild<QDateEdit *>();
|
QDateEdit *dateEditor = widget.viewport()->findChild<QDateEdit *>();
|
||||||
QVERIFY(dateEditor);
|
|
||||||
QCOMPARE(dateEditor->date(), date);
|
QCOMPARE(dateEditor->date(), date);
|
||||||
dateEditor->setDate(date.addDays(60));
|
dateEditor->setDate(date.addDays(60));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user