summaryrefslogtreecommitdiff
path: root/src/imports/positioning
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-02-04 11:52:55 +0100
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-02-17 07:39:13 +0000
commitf5ae66e0ee788c6f99dbd2fa2779d2550e0fb5bf (patch)
tree4c84f03b438a699ea9ec6947d1b4e86121285f99 /src/imports/positioning
parent138888ac0d95b33200eb710dce73bc54c4c7f66c (diff)
downloadqtlocation-f5ae66e0ee788c6f99dbd2fa2779d2550e0fb5bf.tar.gz
Prepare QtLocation & QtPositioning QML type definition for Qt 5.5
The GeoShape is compatibile as the class name changes but the functionality and naming is the same in QML. The QtLocation changes are additions which become available and Qt 5.5. is the first official release anyway. Hence the normal rules about \since do not apply. Change-Id: I41d8afea955001845ab143535f6653fce715b9d8 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Diffstat (limited to 'src/imports/positioning')
-rw-r--r--src/imports/positioning/plugins.qmltypes53
-rw-r--r--src/imports/positioning/positioning.cpp3
2 files changed, 30 insertions, 26 deletions
diff --git a/src/imports/positioning/plugins.qmltypes b/src/imports/positioning/plugins.qmltypes
index bda2e48f..952d6830 100644
--- a/src/imports/positioning/plugins.qmltypes
+++ b/src/imports/positioning/plugins.qmltypes
@@ -4,33 +4,10 @@ import QtQuick.tooling 1.1
// It is used for QML tooling purposes only.
//
// This file was auto-generated by:
-// 'qmlplugindump -nonrelocatable QtPositioning 5.4'
+// 'qmlplugindump -nonrelocatable QtPositioning 5.5'
Module {
Component {
- name: "GeoShapeValueType"
- prototype: "QQmlValueType"
- exports: ["QtPositioning/GeoShape 5.0"]
- isCreatable: false
- exportMetaObjectRevisions: [0]
- Enum {
- name: "ShapeType"
- values: {
- "UnknownType": 0,
- "RectangleType": 1,
- "CircleType": 2
- }
- }
- Property { name: "type"; type: "ShapeType"; isReadonly: true }
- Property { name: "isValid"; type: "bool"; isReadonly: true }
- Property { name: "isEmpty"; type: "bool"; isReadonly: true }
- Method {
- name: "contains"
- type: "bool"
- Parameter { name: "coordinate"; type: "QGeoCoordinate" }
- }
- }
- Component {
name: "LocationSingleton"
prototype: "QObject"
exports: ["QtPositioning/QtPositioning 5.0"]
@@ -125,9 +102,10 @@ Module {
exports: [
"QtPositioning/Position 5.0",
"QtPositioning/Position 5.3",
- "QtPositioning/Position 5.4"
+ "QtPositioning/Position 5.4",
+ "QtPositioning/Position 5.5"
]
- exportMetaObjectRevisions: [0, 1, 2]
+ exportMetaObjectRevisions: [0, 1, 2, 2]
Property { name: "latitudeValid"; type: "bool"; isReadonly: true }
Property { name: "longitudeValid"; type: "bool"; isReadonly: true }
Property { name: "altitudeValid"; type: "bool"; isReadonly: true }
@@ -199,4 +177,27 @@ Module {
Method { name: "start" }
Method { name: "stop" }
}
+ Component {
+ name: "QGeoShape"
+ exports: ["QtPositioning/GeoShape 5.0"]
+ isCreatable: false
+ exportMetaObjectRevisions: [0]
+ Enum {
+ name: "ShapeType"
+ values: {
+ "UnknownType": 0,
+ "RectangleType": 1,
+ "CircleType": 2
+ }
+ }
+ Property { name: "type"; type: "ShapeType"; isReadonly: true }
+ Property { name: "isValid"; type: "bool"; isReadonly: true }
+ Property { name: "isEmpty"; type: "bool"; isReadonly: true }
+ Method {
+ name: "contains"
+ type: "bool"
+ Parameter { name: "coordinate"; type: "QGeoCoordinate" }
+ }
+ Method { name: "toString"; type: "string" }
+ }
}
diff --git a/src/imports/positioning/positioning.cpp b/src/imports/positioning/positioning.cpp
index 561de9b5..64d29578 100644
--- a/src/imports/positioning/positioning.cpp
+++ b/src/imports/positioning/positioning.cpp
@@ -528,6 +528,9 @@ public:
// Introduction of 5.4 version; existing 5.3 exports become automatically available under 5.4
minor = 4;
qmlRegisterType<QDeclarativePosition, 2>(uri, major, minor, "Position");
+
+ minor = 5;
+ qmlRegisterType<QDeclarativePosition, 2>(uri, major, minor, "Position");
} else {
qDebug() << "Unsupported URI given to load positioning QML plugin: " << QLatin1String(uri);
}