summaryrefslogtreecommitdiffstats
path: root/src/location/declarativemaps/qdeclarativegeoroute_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeoroute_p.h')
-rw-r--r--src/location/declarativemaps/qdeclarativegeoroute_p.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeoroute_p.h b/src/location/declarativemaps/qdeclarativegeoroute_p.h
index e4501770..2be3d3f1 100644
--- a/src/location/declarativemaps/qdeclarativegeoroute_p.h
+++ b/src/location/declarativemaps/qdeclarativegeoroute_p.h
@@ -84,6 +84,9 @@ public:
void appendSegment(QDeclarativeGeoRouteSegment *segment);
void clearSegments();
+ int segmentsCount() const;
+ const QGeoRoute &route() const;
+
Q_SIGNALS:
void pathChanged();
@@ -93,11 +96,12 @@ private:
static QDeclarativeGeoRouteSegment *segments_at(QQmlListProperty<QDeclarativeGeoRouteSegment> *prop, int index);
static void segments_clear(QQmlListProperty<QDeclarativeGeoRouteSegment> *prop);
- void init();
+ void initSegments(unsigned int lastIndex = -1);
QList<QGeoCoordinate> routePath();
QGeoRoute route_;
QList<QDeclarativeGeoRouteSegment *> segments_;
+ bool segmentsDirty_;
friend class QDeclarativeRouteMapItem;
};