summaryrefslogtreecommitdiff
path: root/src/imports/positioning/locationsingleton.h
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-05-21 13:30:28 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-05-26 13:29:42 +0000
commit046eec04fb47dee9a1802503004446d1fe777874 (patch)
tree9031a5a971fb89e527b68910aa5737ae612e51e8 /src/imports/positioning/locationsingleton.h
parent9c61ad227761c9f83ea441c6a8db2d570a4009a3 (diff)
downloadqtlocation-046eec04fb47dee9a1802503004446d1fe777874.tar.gz
Provide means to convert GeoShape to appropriate subclass in QML
Change-Id: I1f0d1540b07af8f385ef670990a8669ec8c973d8 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/imports/positioning/locationsingleton.h')
-rw-r--r--src/imports/positioning/locationsingleton.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/positioning/locationsingleton.h b/src/imports/positioning/locationsingleton.h
index 52c24a4c..c5d70b3a 100644
--- a/src/imports/positioning/locationsingleton.h
+++ b/src/imports/positioning/locationsingleton.h
@@ -64,6 +64,9 @@ public:
Q_INVOKABLE QGeoCircle circle() const;
Q_INVOKABLE QGeoCircle circle(const QGeoCoordinate &center, qreal radius = -1.0) const;
+
+ Q_INVOKABLE QGeoCircle shapeToCircle(const QGeoShape &shape) const;
+ Q_INVOKABLE QGeoRectangle shapeToRectangle(const QGeoShape &shape) const;
};
#endif // LOCATIONSINGLETON_H