38 QML_NAMED_ELEMENT(QtPositioning)
40 QML_ADDED_IN_VERSION(5, 0)
43 explicit LocationSingleton(QObject *parent = 0);
45 Q_INVOKABLE QGeoCoordinate coordinate()
const;
46 Q_INVOKABLE QGeoCoordinate coordinate(
double latitude,
double longitude,
47 double altitude = qQNaN())
const;
49 Q_INVOKABLE QGeoShape shape()
const;
51 Q_INVOKABLE QGeoRectangle rectangle()
const;
52 Q_INVOKABLE QGeoRectangle rectangle(
const QGeoCoordinate ¢er,
53 double width,
double height)
const;
54 Q_INVOKABLE QGeoRectangle rectangle(
const QGeoCoordinate &topLeft,
55 const QGeoCoordinate &bottomRight)
const;
56 Q_INVOKABLE QGeoRectangle rectangle(
const QVariantList &coordinates)
const;
58 Q_INVOKABLE QGeoCircle circle()
const;
59 Q_INVOKABLE QGeoCircle circle(
const QGeoCoordinate ¢er, qreal radius = -1.0)
const;
61 Q_INVOKABLE QGeoPath path()
const;
62 Q_INVOKABLE QGeoPath path(
const QJSValue &value, qreal width = 0.0)
const;
64 Q_INVOKABLE QGeoPolygon polygon()
const;
65 Q_INVOKABLE QGeoPolygon polygon(
const QVariantList &value)
const;
66 Q_INVOKABLE QGeoPolygon polygon(
const QVariantList &perimeter,
const QVariantList &holes)
const;
68 Q_INVOKABLE QGeoCircle shapeToCircle(
const QGeoShape &shape)
const;
69 Q_INVOKABLE QGeoRectangle shapeToRectangle(
const QGeoShape &shape)
const;
70 Q_INVOKABLE QGeoPath shapeToPath(
const QGeoShape &shape)
const;
71 Q_INVOKABLE QGeoPolygon shapeToPolygon(
const QGeoShape &shape)
const;
73 Q_REVISION(5, 12) Q_INVOKABLE QGeoCoordinate mercatorToCoord(
const QPointF &mercator)
const;
74 Q_REVISION(5, 12) Q_INVOKABLE QPointF coordToMercator(
const QGeoCoordinate &coord)
const;