diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-11-14 13:07:24 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-11-14 16:34:04 +0100 |
commit | cd7edab940934fe8b100172e3e62e7eea5c354e5 (patch) | |
tree | 9e1ed382e8adb2bf0061996e611391f08f0e3709 | |
parent | a467eadd46bec7a66e2e97bc4fd3a5271430bc93 (diff) | |
download | qtlocation-cd7edab940934fe8b100172e3e62e7eea5c354e5.tar.gz |
Use qmlRegisterAnonnymousType for anonymous type registration
qmlRegisterType without uri and major version is deprecated.
Change-Id: I772f7734301bec7cb0e20a6bbc1e4f7b513248b9
Fixes: QTBUG-80043
Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
-rw-r--r-- | src/imports/location/location.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/location/location.cpp b/src/imports/location/location.cpp index 40dffd5d..fd53ad7a 100644 --- a/src/imports/location/location.cpp +++ b/src/imports/location/location.cpp @@ -131,7 +131,7 @@ public: qmlRegisterType<QDeclarativePlaceUser >(uri, major, minor, "User"); qmlRegisterType<QDeclarativeRectangleMapItem >(uri, major, minor, "MapRectangle"); qmlRegisterType<QDeclarativeCircleMapItem >(uri, major, minor, "MapCircle"); - qmlRegisterType<QDeclarativeMapLineProperties>(); + qmlRegisterAnonymousType<QDeclarativeMapLineProperties >(uri, major); qmlRegisterType<QDeclarativePolylineMapItem >(uri, major, minor, "MapPolyline"); qmlRegisterType<QDeclarativePolygonMapItem >(uri, major, minor, "MapPolygon"); qmlRegisterType<QDeclarativeRouteMapItem >(uri, major, minor, "MapRoute"); @@ -177,7 +177,7 @@ public: // Register the 5.11 types minor = 11; - qmlRegisterType<QGeoMapObject>(); + qmlRegisterAnonymousType<QGeoMapObject>(uri, major); qmlRegisterType<QDeclarativeGeoManeuver, 11>(uri, major, minor, "RouteManeuver"); qmlRegisterType<QDeclarativeGeoMap, 11>(uri, major, minor, "Map"); qmlRegisterUncreatableType<QDeclarativeGeoMapItemBase, 11>(uri, major, minor, "GeoMapItemBase", |