summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qquickgeomapgesturearea_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/declarativemaps/qquickgeomapgesturearea_p.h')
-rw-r--r--src/location/declarativemaps/qquickgeomapgesturearea_p.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/location/declarativemaps/qquickgeomapgesturearea_p.h b/src/location/declarativemaps/qquickgeomapgesturearea_p.h
index 13278651..320c0fbe 100644
--- a/src/location/declarativemaps/qquickgeomapgesturearea_p.h
+++ b/src/location/declarativemaps/qquickgeomapgesturearea_p.h
@@ -50,6 +50,7 @@
#include <QtLocation/private/qlocationglobal_p.h>
+#include <QtCore/QPointer>
#include <QtQuick/QQuickItem>
#include <QTouchEvent>
#include <QDebug>
@@ -175,7 +176,7 @@ public:
void setMaximumZoomLevel(qreal max);
qreal maximumZoomLevel() const;
- void setMap(QGeoMap *map);
+ void setMap(QPointer<QGeoMap> map);
bool preventStealing() const;
void setPreventStealing(bool prevent);
@@ -264,7 +265,7 @@ private:
void updateFlickParameters(const QPointF &pos);
private:
- QGeoMap *m_map;
+ QPointer<QGeoMap> m_map;
QDeclarativeGeoMap *m_declarativeMap;
bool m_enabled;