summaryrefslogtreecommitdiff
path: root/src/imports/location/qdeclarativepolygonmapitem_p.h
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@jollamobile.com>2014-01-29 16:45:54 +1000
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-07 07:09:40 +0100
commit001c842689ee5a0a91fff51a25fc6f7f9d523e51 (patch)
treeb5dac249aa2894aca710049b325ad10360290296 /src/imports/location/qdeclarativepolygonmapitem_p.h
parent202adba6230b6de21d333273eaefc44654802c9c (diff)
downloadqtlocation-001c842689ee5a0a91fff51a25fc6f7f9d523e51.tar.gz
Fix map item behavior when used with a MouseArea.
Update the geo coordinate properties when the map items are moved. Change-Id: I32918571379d81c651e652513b63945ee23e3fd9 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/imports/location/qdeclarativepolygonmapitem_p.h')
-rw-r--r--src/imports/location/qdeclarativepolygonmapitem_p.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/imports/location/qdeclarativepolygonmapitem_p.h b/src/imports/location/qdeclarativepolygonmapitem_p.h
index d95e1de3..e96dd2cf 100644
--- a/src/imports/location/qdeclarativepolygonmapitem_p.h
+++ b/src/imports/location/qdeclarativepolygonmapitem_p.h
@@ -101,13 +101,14 @@ public:
QDeclarativeMapLineProperties *border();
bool contains(const QPointF &point) const;
- void dragStarted();
- void dragEnded();
Q_SIGNALS:
void pathChanged();
void colorChanged(const QColor &color);
+protected:
+ void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) Q_DECL_OVERRIDE;
+
protected Q_SLOTS:
virtual void updateMapItem();
void handleBorderUpdated();
@@ -122,6 +123,7 @@ private:
bool dirtyMaterial_;
QGeoMapPolygonGeometry geometry_;
QGeoMapPolylineGeometry borderGeometry_;
+ bool updatingGeometry_;
};
//////////////////////////////////////////////////////////////////////