32 QML_NAMED_ELEMENT(Location)
33 QML_ADDED_IN_VERSION(5, 0)
35 Q_PROPERTY(QGeoLocation location READ location WRITE setLocation)
36 Q_PROPERTY(QDeclarativeGeoAddress *address READ address WRITE setAddress BINDABLE
38 Q_PROPERTY(QGeoCoordinate coordinate READ coordinate WRITE setCoordinate BINDABLE
40 Q_PROPERTY(QGeoShape boundingShape READ boundingShape WRITE setBoundingShape BINDABLE
41 bindableBoundingShape REVISION(6, 2))
42 Q_PROPERTY(QVariantMap extendedAttributes READ extendedAttributes WRITE setExtendedAttributes
43 BINDABLE bindableExtendedAttributes REVISION(5, 13))
46 explicit QDeclarativeGeoLocation(QObject *parent = 0);
47 explicit QDeclarativeGeoLocation(
const QGeoLocation &src, QObject *parent = 0);
48 ~QDeclarativeGeoLocation();
50 QGeoLocation location()
const;
51 void setLocation(
const QGeoLocation &src);
53 QDeclarativeGeoAddress *address()
const;
54 void setAddress(QDeclarativeGeoAddress *address);
55 QBindable<QDeclarativeGeoAddress *> bindableAddress();
57 QGeoCoordinate coordinate()
const;
58 void setCoordinate(
const QGeoCoordinate coordinate);
59 QBindable<QGeoCoordinate> bindableCoordinate();
61 QGeoShape boundingShape()
const;
62 void setBoundingShape(
const QGeoShape &boundingShape);
63 QBindable<QGeoShape> bindableBoundingShape();
65 QVariantMap extendedAttributes()
const;
66 void setExtendedAttributes(
const QVariantMap &attributes);
67 QBindable<QVariantMap> bindableExtendedAttributes();
70 void setLocationInternal(
const QGeoLocation &src);
72 Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QDeclarativeGeoLocation, QDeclarativeGeoAddress *, m_address,
73 &QDeclarativeGeoLocation::setAddress,
nullptr)
74 Q_OBJECT_BINDABLE_PROPERTY(QDeclarativeGeoLocation, QGeoShape, m_boundingShape)
75 Q_OBJECT_BINDABLE_PROPERTY(QDeclarativeGeoLocation, QGeoCoordinate, m_coordinate)
76 Q_OBJECT_BINDABLE_PROPERTY(QDeclarativeGeoLocation, QVariantMap, m_extendedAttributes)