61 setLocationInternal(
src);
74void QDeclarativeGeoLocation::setLocationInternal(
const QGeoLocation &
src)
77 m_coordinate.setValueBypassingBindings(
src.coordinate());
78 m_boundingShape.setValueBypassingBindings(
src.boundingShape());
79 m_extendedAttributes.setValueBypassingBindings(
src.extendedAttributes());
93 if (m_address && m_address->parent() ==
this) {
94 m_address->setAddress(
src.address());
95 }
else if (!m_address || m_address->parent() !=
this) {
109 retValue.setCoordinate(m_coordinate);
110 retValue.setBoundingShape(m_boundingShape);
111 retValue.setExtendedAttributes(m_extendedAttributes);
122 m_address.removeBindingUnlessInWrapper();
131 m_address.setValueBypassingBindings(
address);
133 if (oldAddress && (oldAddress->parent() ==
this))
139 return QBindable<QDeclarativeGeoAddress *>(&m_address);
162 return QBindable<QGeoCoordinate>(&m_coordinate);
200 return QBindable<QGeoShape>(&m_boundingShape);
205 return m_extendedAttributes;
210 m_extendedAttributes = attributes;
215 return QBindable<QVariantMap>(&m_extendedAttributes);
220 return m_boundingShape;
225#include "moc_qdeclarativegeolocation_p.cpp"
void setBoundingShape(const QGeoShape &boundingShape)
void setExtendedAttributes(const QVariantMap &attributes)
QBindable< QGeoCoordinate > bindableCoordinate()
QBindable< QDeclarativeGeoAddress * > bindableAddress()
~QDeclarativeGeoLocation()
QDeclarativeGeoLocation(QObject *parent=0)
\qmltype Location \inqmlmodule QtPositioning
QGeoCoordinate coordinate
QBindable< QVariantMap > bindableExtendedAttributes()
QBindable< QGeoShape > bindableBoundingShape()
void setAddress(QDeclarativeGeoAddress *address)
\qmlproperty Address QtPositioning::Location::address
QDeclarativeGeoAddress * address
void setLocation(const QGeoLocation &src)
\qmlproperty QGeoLocation QtPositioning::Location::location
QVariantMap extendedAttributes
void setCoordinate(const QGeoCoordinate coordinate)
\qmlproperty coordinate QtPositioning::Location::coordinate
void setAddress(const QGeoAddress &address)
Sets the address of the location.
Combined button and popup list for selecting options.
GLuint GLuint64EXT address