summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qquickgeomapgesturearea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/declarativemaps/qquickgeomapgesturearea.cpp')
-rw-r--r--src/location/declarativemaps/qquickgeomapgesturearea.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/location/declarativemaps/qquickgeomapgesturearea.cpp b/src/location/declarativemaps/qquickgeomapgesturearea.cpp
index 992fa21e..c28c2a28 100644
--- a/src/location/declarativemaps/qquickgeomapgesturearea.cpp
+++ b/src/location/declarativemaps/qquickgeomapgesturearea.cpp
@@ -41,7 +41,9 @@
#include <QtGui/QGuiApplication>
#include <QtGui/qevent.h>
+#if QT_CONFIG(wheelevent)
#include <QtGui/QWheelEvent>
+#endif
#include <QtGui/QStyleHints>
#include <QtQml/qqmlinfo.h>
#include <QtQuick/QQuickWindow>
@@ -940,6 +942,7 @@ void QQuickGeoMapGestureArea::handleTouchEvent(QTouchEvent *event)
update();
}
+#if QT_CONFIG(wheelevent)
void QQuickGeoMapGestureArea::handleWheelEvent(QWheelEvent *event)
{
if (!m_map)
@@ -958,6 +961,7 @@ void QQuickGeoMapGestureArea::handleWheelEvent(QWheelEvent *event)
event->accept();
}
+#endif
/*!
\internal