diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-08-06 16:41:45 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-08-07 10:12:12 +0000 |
commit | 2bb454ee670a84661442592ede39842b0d9bdfcd (patch) | |
tree | c8ed2b6c91b2b8c389fc97cef3750bdc8a8ee219 /tests/auto/widgets/widgets/qdatetimeedit/tst_qdatetimeedit.cpp | |
parent | 58e3e32adf227e91771fa421f2657f758ef1411b (diff) |
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>
Diffstat (limited to 'tests/auto/widgets/widgets/qdatetimeedit/tst_qdatetimeedit.cpp')
-rw-r--r-- | tests/auto/widgets/widgets/qdatetimeedit/tst_qdatetimeedit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/widgets/widgets/qdatetimeedit/tst_qdatetimeedit.cpp b/tests/auto/widgets/widgets/qdatetimeedit/tst_qdatetimeedit.cpp index 6540773781..e2f1307eb1 100644 --- a/tests/auto/widgets/widgets/qdatetimeedit/tst_qdatetimeedit.cpp +++ b/tests/auto/widgets/widgets/qdatetimeedit/tst_qdatetimeedit.cpp @@ -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() |