diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-23 15:19:59 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-28 17:14:34 +0200 |
commit | 104e1bb73f19eff5ca5c136bdbcb99e2e4bc196b (patch) | |
tree | 4fb6da407bad9d9e69493980c5a069ab50eb248c /src/location/quickmapitems/qdeclarativepolylinemapitem_p.h | |
parent | 49a72acedbe4f66c94aca39f8ce9b2ea1e694366 (diff) | |
download | qtlocation-104e1bb73f19eff5ca5c136bdbcb99e2e4bc196b.tar.gz |
Build system: move to declarative type registration
Adjust the build system accordingly, attaching a QML module with
the respective implementations to the QtLocation target.
An explicit function is still needed to register converters, and will
be removed once the improved support for value types has merged.
This should enable the qml compiler to generate C++ code, which then
requires linking against the library.
The MapParameter type was renamed to DynamicMapParamter as per the
5.11 change log, so remove the MapParameter alias now and adjust
tests.
Task-number: QTBUG-106886
Change-Id: Id8765c1bc3b98d447d768b246b21a16f71bfdf74
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/location/quickmapitems/qdeclarativepolylinemapitem_p.h')
-rw-r--r-- | src/location/quickmapitems/qdeclarativepolylinemapitem_p.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/location/quickmapitems/qdeclarativepolylinemapitem_p.h b/src/location/quickmapitems/qdeclarativepolylinemapitem_p.h index bd7cc9a2..e5446d7b 100644 --- a/src/location/quickmapitems/qdeclarativepolylinemapitem_p.h +++ b/src/location/quickmapitems/qdeclarativepolylinemapitem_p.h @@ -66,6 +66,8 @@ QT_BEGIN_NAMESPACE class Q_LOCATION_PRIVATE_EXPORT QDeclarativeMapLineProperties : public QObject { Q_OBJECT + QML_ELEMENT + QML_ANONYMOUS Q_PROPERTY(qreal width READ width WRITE setWidth NOTIFY widthChanged) Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged) @@ -92,11 +94,13 @@ class QDeclarativePolylineMapItemPrivate; class Q_LOCATION_PRIVATE_EXPORT QDeclarativePolylineMapItem : public QDeclarativeGeoMapItemBase { Q_OBJECT + QML_NAMED_ELEMENT(MapPolyline) + QML_ADDED_IN_VERSION(5, 0) Q_ENUMS(Backend) Q_PROPERTY(QList<QGeoCoordinate> path READ path WRITE setPath NOTIFY pathChanged) Q_PROPERTY(QDeclarativeMapLineProperties *line READ line CONSTANT) - Q_PROPERTY(Backend backend READ backend WRITE setBackend NOTIFY backendChanged REVISION 15) + Q_PROPERTY(Backend backend READ backend WRITE setBackend NOTIFY backendChanged REVISION(5, 15)) public: enum Backend { |