diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-03 17:58:00 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-09 12:33:20 +0200 |
commit | a353464c39de1ffe08147b5374d1a3c16e4d4e03 (patch) | |
tree | 2758a1b167ce6c05ed5e06cbf4b69ad0712a7db7 /src/location/declarativemaps/qdeclarativegeoroute.cpp | |
parent | b6d3431ba621a1aabfd7d1ea3326bf503428a634 (diff) | |
download | qtlocation-a353464c39de1ffe08147b5374d1a3c16e4d4e03.tar.gz |
Make QDeclarativeGeoRoute::legs type safe
We can use a QList property with a forward-declared type, so do that
instead of using QList<QObject *>.
Pick-to: 6.2
Change-Id: I20d8ebbf4aa2d9ca18ae0ce7b3e6b2698dd069f2
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeoroute.cpp')
-rw-r--r-- | src/location/declarativemaps/qdeclarativegeoroute.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeoroute.cpp b/src/location/declarativemaps/qdeclarativegeoroute.cpp index 104b87b7..af6dc42b 100644 --- a/src/location/declarativemaps/qdeclarativegeoroute.cpp +++ b/src/location/declarativemaps/qdeclarativegeoroute.cpp @@ -273,7 +273,7 @@ QDeclarativeGeoRouteQuery *QDeclarativeGeoRoute::routeQuery() \since QtLocation 5.12 */ -QList<QObject *> QDeclarativeGeoRoute::legs() +QList<QDeclarativeGeoRouteLeg *> QDeclarativeGeoRoute::legs() { // route_.routeLegs() is expected not to change. // The following if condition is expected to be run only once. |