31 QML_NAMED_ELEMENT(Location)
32 QML_ADDED_IN_VERSION(5, 0)
34 Q_PROPERTY(QGeoLocation location READ location WRITE setLocation)
35 Q_PROPERTY(QDeclarativeGeoAddress *address READ address WRITE setAddress BINDABLE
37 Q_PROPERTY(QGeoCoordinate coordinate READ coordinate WRITE setCoordinate BINDABLE
39 Q_PROPERTY(QGeoShape boundingShape READ boundingShape WRITE setBoundingShape BINDABLE
40 bindableBoundingShape REVISION(6, 2))
41 Q_PROPERTY(QVariantMap extendedAttributes READ extendedAttributes WRITE setExtendedAttributes
42 BINDABLE bindableExtendedAttributes REVISION(5, 13))
45 explicit QDeclarativeGeoLocation(QObject *parent = 0);
46 explicit QDeclarativeGeoLocation(
const QGeoLocation &src, QObject *parent = 0);
47 ~QDeclarativeGeoLocation();
49 QGeoLocation location()
const;
50 void setLocation(
const QGeoLocation &src);
52 QDeclarativeGeoAddress *address()
const;
53 void setAddress(QDeclarativeGeoAddress *address);
54 QBindable<QDeclarativeGeoAddress *> bindableAddress();
56 QGeoCoordinate coordinate()
const;
57 void setCoordinate(
const QGeoCoordinate coordinate);
58 QBindable<QGeoCoordinate> bindableCoordinate();
60 QGeoShape boundingShape()
const;
61 void setBoundingShape(
const QGeoShape &boundingShape);
62 QBindable<QGeoShape> bindableBoundingShape();
64 QVariantMap extendedAttributes()
const;
65 void setExtendedAttributes(
const QVariantMap &attributes);
66 QBindable<QVariantMap> bindableExtendedAttributes();
69 void setLocationInternal(
const QGeoLocation &src);
71 Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QDeclarativeGeoLocation, QDeclarativeGeoAddress *, m_address,
72 &QDeclarativeGeoLocation::setAddress,
nullptr)
73 Q_OBJECT_BINDABLE_PROPERTY(QDeclarativeGeoLocation, QGeoShape, m_boundingShape)
74 Q_OBJECT_BINDABLE_PROPERTY(QDeclarativeGeoLocation, QGeoCoordinate, m_coordinate)
75 Q_OBJECT_BINDABLE_PROPERTY(QDeclarativeGeoLocation, QVariantMap, m_extendedAttributes)