diff options
Diffstat (limited to 'src/imports/locationlabs')
-rw-r--r-- | src/imports/locationlabs/locationlabs.cpp | 3 | ||||
-rw-r--r-- | src/imports/locationlabs/locationlabs.pro | 2 | ||||
-rw-r--r-- | src/imports/locationlabs/plugins.qmltypes | 104 |
3 files changed, 101 insertions, 8 deletions
diff --git a/src/imports/locationlabs/locationlabs.cpp b/src/imports/locationlabs/locationlabs.cpp index 6f3b6dd1..cebdf0e4 100644 --- a/src/imports/locationlabs/locationlabs.cpp +++ b/src/imports/locationlabs/locationlabs.cpp @@ -74,9 +74,6 @@ public: qmlRegisterType<QMapPolygonObject>(uri, major, minor, "MapPolygonObject"); qmlRegisterType<QMapPolylineObject>(uri, major, minor, "MapPolylineObject"); qmlRegisterType<QDeclarativeNavigator>(uri, major, minor, "Navigator"); - - // Register the latest Qt version as QML type version - qmlRegisterModule(uri, QT_VERSION_MAJOR, QT_VERSION_MINOR); } else { qDebug() << "Unsupported URI given to load location QML plugin: " << QLatin1String(uri); } diff --git a/src/imports/locationlabs/locationlabs.pro b/src/imports/locationlabs/locationlabs.pro index db7f5ec2..2fcc1adc 100644 --- a/src/imports/locationlabs/locationlabs.pro +++ b/src/imports/locationlabs/locationlabs.pro @@ -3,7 +3,7 @@ QT += quick-private network positioning-private location-private qml-private cor TARGET = locationlabsplugin CXX_MODULE = $$TARGET TARGETPATH = Qt/labs/location -IMPORT_VERSION = 5.11 +IMPORT_VERSION = 1.0 SOURCES += \ locationlabs.cpp diff --git a/src/imports/locationlabs/plugins.qmltypes b/src/imports/locationlabs/plugins.qmltypes index d5e30c38..e985e844 100644 --- a/src/imports/locationlabs/plugins.qmltypes +++ b/src/imports/locationlabs/plugins.qmltypes @@ -4,10 +4,43 @@ import QtQuick.tooling 1.2 // It is used for QML tooling purposes only. // // This file was auto-generated by: -// 'qmlplugindump -nonrelocatable Qt.labs.location 5.11' +// 'qmlplugindump -nonrelocatable Qt.labs.location 1.0' Module { - dependencies: ["QtQuick 2.8"] + dependencies: ["QtQuick 2.11"] + Component { + name: "QDeclarativeNavigator" + defaultProperty: "quickChildren" + prototype: "QParameterizableObject" + exports: ["Qt.labs.location/Navigator 1.0"] + exportMetaObjectRevisions: [0] + Property { name: "plugin"; type: "QDeclarativeGeoServiceProvider"; isPointer: true } + Property { name: "map"; type: "QDeclarativeGeoMap"; isPointer: true } + Property { name: "route"; type: "QDeclarativeGeoRoute"; isPointer: true } + Property { name: "positionSource"; type: "QDeclarativePositionSource"; isPointer: true } + Property { name: "active"; type: "bool" } + Property { name: "navigatorReady"; type: "bool"; isReadonly: true } + Property { name: "trackPositionSource"; type: "bool" } + Property { name: "currentRoute"; type: "QDeclarativeGeoRoute"; isReadonly: true; isPointer: true } + Property { name: "currentSegment"; type: "int"; isReadonly: true } + Signal { + name: "navigatorReadyChanged" + Parameter { name: "ready"; type: "bool" } + } + Signal { + name: "trackPositionSourceChanged" + Parameter { name: "trackPositionSource"; type: "bool" } + } + Signal { + name: "activeChanged" + Parameter { name: "active"; type: "bool" } + } + Signal { + name: "waypointReached" + Parameter { name: "pos"; type: "const QDeclarativeGeoWaypoint"; isPointer: true } + } + Signal { name: "destinationReached" } + } Component { name: "QGeoMapObject" defaultProperty: "quickChildren" @@ -32,10 +65,44 @@ Module { Signal { name: "completed" } } Component { + name: "QMapCircleObject" + defaultProperty: "quickChildren" + prototype: "QGeoMapObject" + exports: ["Qt.labs.location/MapCircleObject 1.0"] + exportMetaObjectRevisions: [0] + Property { name: "center"; type: "QGeoCoordinate" } + Property { name: "radius"; type: "double" } + Property { name: "color"; type: "QColor" } + Property { + name: "border" + type: "QDeclarativeMapLineProperties" + isReadonly: true + isPointer: true + } + } + Component { + name: "QMapIconObject" + defaultProperty: "quickChildren" + prototype: "QGeoMapObject" + exports: ["Qt.labs.location/MapIconObject 1.0"] + exportMetaObjectRevisions: [0] + Property { name: "coordinate"; type: "QGeoCoordinate" } + Property { name: "content"; type: "QVariant" } + Property { name: "size"; type: "QSizeF" } + Signal { + name: "contentChanged" + Parameter { name: "content"; type: "QVariant" } + } + Signal { + name: "coordinateChanged" + Parameter { name: "coordinate"; type: "QGeoCoordinate" } + } + } + Component { name: "QMapObjectView" defaultProperty: "quickChildren" prototype: "QGeoMapObject" - exports: ["Qt.labs.location/MapObjectView 5.11"] + exports: ["Qt.labs.location/MapObjectView 1.0"] exportMetaObjectRevisions: [0] Property { name: "model"; type: "QVariant" } Property { name: "delegate"; type: "QQmlComponent"; isPointer: true } @@ -57,10 +124,39 @@ Module { } } Component { + name: "QMapPolygonObject" + defaultProperty: "quickChildren" + prototype: "QGeoMapObject" + exports: ["Qt.labs.location/MapPolygonObject 1.0"] + exportMetaObjectRevisions: [0] + Property { name: "path"; type: "QVariantList" } + Property { name: "color"; type: "QColor" } + Property { + name: "border" + type: "QDeclarativeMapLineProperties" + isReadonly: true + isPointer: true + } + } + Component { + name: "QMapPolylineObject" + defaultProperty: "quickChildren" + prototype: "QGeoMapObject" + exports: ["Qt.labs.location/MapPolylineObject 1.0"] + exportMetaObjectRevisions: [0] + Property { name: "path"; type: "QVariantList" } + Property { + name: "line" + type: "QDeclarativeMapLineProperties" + isReadonly: true + isPointer: true + } + } + Component { name: "QMapRouteObject" defaultProperty: "quickChildren" prototype: "QGeoMapObject" - exports: ["Qt.labs.location/MapRouteObject 5.11"] + exports: ["Qt.labs.location/MapRouteObject 1.0"] exportMetaObjectRevisions: [0] Property { name: "route"; type: "QDeclarativeGeoRoute"; isPointer: true } Signal { |