summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qdeclarativegeomap_p.h
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2017-03-06 11:59:55 -0800
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-03-06 21:01:08 +0000
commit7a6c1a93a0c1f7305f861b2f717bf71f2c7eaae7 (patch)
tree0e47e7f133dec02564941bb36459bd3b739af5b8 /src/location/declarativemaps/qdeclarativegeomap_p.h
parentc580d99097763d915a8fc1479060e3f6b0a00147 (diff)
downloadqtlocation-7a6c1a93a0c1f7305f861b2f717bf71f2c7eaae7.tar.gz
Add mapReady to notify when the map is ready
This adds a mean to notify when the Map becomes truly ready. This property should always be used in place of listening on the Component completed() signal. Change-Id: I98db7a4fd1fea6e54f6e6eca7ac50f26f90276f5 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeomap_p.h')
-rw-r--r--src/location/declarativemaps/qdeclarativegeomap_p.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeomap_p.h b/src/location/declarativemaps/qdeclarativegeomap_p.h
index ab5732e4..da430ce5 100644
--- a/src/location/declarativemaps/qdeclarativegeomap_p.h
+++ b/src/location/declarativemaps/qdeclarativegeomap_p.h
@@ -99,6 +99,7 @@ class Q_LOCATION_PRIVATE_EXPORT QDeclarativeGeoMap : public QQuickItem
Q_PROPERTY(QGeoShape visibleRegion READ visibleRegion WRITE setVisibleRegion)
Q_PROPERTY(bool copyrightsVisible READ copyrightsVisible WRITE setCopyrightsVisible NOTIFY copyrightsVisibleChanged)
Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
+ Q_PROPERTY(bool mapReady READ mapReady NOTIFY mapReadyChanged)
Q_INTERFACES(QQmlParserStatus)
public:
@@ -150,6 +151,8 @@ public:
void setColor(const QColor &color);
QColor color() const;
+ bool mapReady() const;
+
QQmlListProperty<QDeclarativeGeoMapType> supportedMapTypes();
Q_INVOKABLE void removeMapItem(QDeclarativeGeoMapItemBase *item);
@@ -202,7 +205,7 @@ Q_SIGNALS:
void maximumFieldOfViewChanged(qreal maximumFieldOfView);
void copyrightsChanged(const QImage &copyrightsImage);
void copyrightsChanged(const QString &copyrightsHtml);
- void initialized();
+ void mapReadyChanged(bool ready);
protected:
void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE ;