37 QML_NAMED_ELEMENT(QtPositioning)
39 QML_ADDED_IN_VERSION(5, 0)
42 explicit LocationSingleton(QObject *parent = 0);
44 Q_INVOKABLE QGeoCoordinate coordinate()
const;
45 Q_INVOKABLE QGeoCoordinate coordinate(
double latitude,
double longitude,
46 double altitude = qQNaN())
const;
48 Q_INVOKABLE QGeoShape shape()
const;
50 Q_INVOKABLE QGeoRectangle rectangle()
const;
51 Q_INVOKABLE QGeoRectangle rectangle(
const QGeoCoordinate ¢er,
52 double width,
double height)
const;
53 Q_INVOKABLE QGeoRectangle rectangle(
const QGeoCoordinate &topLeft,
54 const QGeoCoordinate &bottomRight)
const;
55 Q_INVOKABLE QGeoRectangle rectangle(
const QVariantList &coordinates)
const;
57 Q_INVOKABLE QGeoCircle circle()
const;
58 Q_INVOKABLE QGeoCircle circle(
const QGeoCoordinate ¢er, qreal radius = -1.0)
const;
60 Q_INVOKABLE QGeoPath path()
const;
61 Q_INVOKABLE QGeoPath path(
const QJSValue &value, qreal width = 0.0)
const;
63 Q_INVOKABLE QGeoPolygon polygon()
const;
64 Q_INVOKABLE QGeoPolygon polygon(
const QVariantList &value)
const;
65 Q_INVOKABLE QGeoPolygon polygon(
const QVariantList &perimeter,
const QVariantList &holes)
const;
67 Q_INVOKABLE QGeoCircle shapeToCircle(
const QGeoShape &shape)
const;
68 Q_INVOKABLE QGeoRectangle shapeToRectangle(
const QGeoShape &shape)
const;
69 Q_INVOKABLE QGeoPath shapeToPath(
const QGeoShape &shape)
const;
70 Q_INVOKABLE QGeoPolygon shapeToPolygon(
const QGeoShape &shape)
const;
72 Q_REVISION(5, 12) Q_INVOKABLE QGeoCoordinate mercatorToCoord(
const QPointF &mercator)
const;
73 Q_REVISION(5, 12) Q_INVOKABLE QPointF coordToMercator(
const QGeoCoordinate &coord)
const;