diff options
author | Thomas Lowe <thomas.lowe@nokia.com> | 2012-04-24 14:40:48 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-24 07:16:24 +0200 |
commit | 7a2b354cfcd9569dbf8809fb010268c182204286 (patch) | |
tree | 366bb7d387cb63ba009b5ad7a7d0843b5d9a88cb /examples | |
parent | 33ce4c290c12c038b8afec6a62a132bad80770a9 (diff) | |
download | qtlocation-7a2b354cfcd9569dbf8809fb010268c182204286.tar.gz |
Made polygon area draggable
Task-number: 25473
Change-Id: Ibdd5195634f849794ff71cd410553b62cd91473d
Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/mapviewer/content/map/PolygonItem.qml | 5 | ||||
-rw-r--r-- | examples/declarative/mapviewer/content/map/RectangleItem.qml | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/examples/declarative/mapviewer/content/map/PolygonItem.qml b/examples/declarative/mapviewer/content/map/PolygonItem.qml index e9768e69..62a8fadf 100644 --- a/examples/declarative/mapviewer/content/map/PolygonItem.qml +++ b/examples/declarative/mapviewer/content/map/PolygonItem.qml @@ -55,4 +55,9 @@ MapPolygon { addCoordinate(markers[i].coordinate) } } + MapMouseArea { + anchors.fill:parent + id: mousearea + drag.target: parent + } } diff --git a/examples/declarative/mapviewer/content/map/RectangleItem.qml b/examples/declarative/mapviewer/content/map/RectangleItem.qml index c7b0d612..f6d6515f 100644 --- a/examples/declarative/mapviewer/content/map/RectangleItem.qml +++ b/examples/declarative/mapviewer/content/map/RectangleItem.qml @@ -71,5 +71,6 @@ MapRectangle { anchors.fill:parent id: mousearea hoverEnabled: false + drag.target: parent } } |