tst_qdatetimeedit: call setCalendarPopup(false) when cleaning up

Tests could change this property, and since the majority of the tests
share testWidget instead of creating local instances, we should be
thorough when cleaning up.

Change-Id: I6039fb6857f4f788f809b1d1fd491b4ef34923ca
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
bb10
Mitch Curtis 2018-08-06 16:41:45 +02:00
parent 58e3e32adf
commit 2bb454ee67
1 changed files with 2 additions and 0 deletions

View File

@ -457,6 +457,8 @@ void tst_QDateTimeEdit::cleanup()
testWidget->setTimeSpec(Qt::LocalTime);
testWidget->setSpecialValueText(QString());
testWidget->setWrapping(false);
// Restore the default.
testWidget->setCalendarPopup(false);
}
void tst_QDateTimeEdit::constructor_qwidget()