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/kernel/qapplication | |
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/kernel/qapplication')
-rw-r--r-- | tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp b/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp index c3e8b51ccd..c9a1a64135 100644 --- a/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp +++ b/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp @@ -149,7 +149,9 @@ private slots: void execAfterExit(); +#ifndef QT_NO_WHEELEVENT void wheelScrollLines(); +#endif void task109149(); @@ -1844,6 +1846,7 @@ void tst_QApplication::execAfterExit() QCOMPARE(exitCode, 0); } +#ifndef QT_NO_WHEELEVENT void tst_QApplication::wheelScrollLines() { int argc = 1; @@ -1851,6 +1854,7 @@ void tst_QApplication::wheelScrollLines() // If wheelScrollLines returns 0, the mose wheel will be disabled. QVERIFY(app.wheelScrollLines() > 0); } +#endif // !QT_NO_WHEELEVENT void tst_QApplication::style() { |