Skip to content

Commit

Permalink
tst_qdatetimeedit: call setCalendarPopup(false) when cleaning up
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Simon Hausmann <[email protected]>
  • Loading branch information
mitchcurtis committed Aug 7, 2018
1 parent 58e3e32 commit 2bb454e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2bb454e

Please sign in to comment.