diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2015-02-27 10:22:36 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@digia.com> | 2015-03-03 13:30:39 +0000 |
commit | 877032bfdf0376cb5e438b3abe3fe5f45ce982c0 (patch) | |
tree | 1399f8841235294384c1cd04056f2307e0b5f01d /tests/auto/widgets/widgets/qdatetimeedit | |
parent | 34a58b0eb7c0c40be87e62251bc714d63293d51a (diff) |
autotests: fix the build in case of QT_NO_WHEELEVENT
Wheel event tests aren't possible if there's no wheel event.
Change-Id: Ibe380c01fbf6cebfd2f43c6ecb52863134ea3c01
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'tests/auto/widgets/widgets/qdatetimeedit')
-rw-r--r-- | tests/auto/widgets/widgets/qdatetimeedit/tst_qdatetimeedit.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/widgets/widgets/qdatetimeedit/tst_qdatetimeedit.cpp b/tests/auto/widgets/widgets/qdatetimeedit/tst_qdatetimeedit.cpp index 8f6d54e325..c9ae60dd76 100644 --- a/tests/auto/widgets/widgets/qdatetimeedit/tst_qdatetimeedit.cpp +++ b/tests/auto/widgets/widgets/qdatetimeedit/tst_qdatetimeedit.cpp @@ -236,7 +236,9 @@ private slots: void reverseTest(); void ddMMMMyyyy(); +#ifndef QT_NO_WHEELEVENT void wheelEvent(); +#endif void specialValueCornerCase(); void cursorPositionOnInit(); @@ -3028,6 +3030,7 @@ void tst_QDateTimeEdit::ddMMMMyyyy() QCOMPARE(testWidget->lineEdit()->text(), "01." + QDate::longMonthName(1) + ".200"); } +#ifndef QT_NO_WHEELEVENT void tst_QDateTimeEdit::wheelEvent() { testWidget->setDisplayFormat("dddd/MM"); @@ -3040,6 +3043,7 @@ void tst_QDateTimeEdit::wheelEvent() qApp->sendEvent(testWidget, &w); QCOMPARE(testWidget->date(), QDate(2000, 3, 22)); } +#endif // !QT_NO_WHEELEVENT void tst_QDateTimeEdit::specialValueCornerCase() { |