summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2018-01-07 15:15:53 +0100
committerLiang Qi <liang.qi@qt.io>2018-01-07 15:17:42 +0100
commit18b2dce9a8cbf49c6f2f7bf62698eb19649622ca (patch)
tree3db7ffffa97bb64a021455cee932d94a868c1e7c /src
parent1177b517e80af7623bd1c094e731da2a4333dc51 (diff)
parenteca7ffd4f8539292aed40b81284e0cd81f80c998 (diff)
downloadqtlocation-18b2dce9a8cbf49c6f2f7bf62698eb19649622ca.tar.gz
Merge remote-tracking branch 'origin/5.10' into dev
Conflicts: .qmake.conf src/imports/location/location.cpp src/plugins/geoservices/mapbox/qgeoroutereplymapbox.cpp Change-Id: I0c1ce33cff7bb1a65e65b8adafd2b31eb936d515
Diffstat (limited to 'src')
m---------src/3rdparty/mapbox-gl-native0
-rw-r--r--src/imports/location/location.cpp3
-rw-r--r--src/imports/location/plugins.qmltypes49
-rw-r--r--src/imports/positioning/plugins.qmltypes21
-rw-r--r--src/imports/positioning/positioning.cpp6
-rw-r--r--src/location/configure.json2
-rw-r--r--src/location/doc/qtlocation.qdocconf2
-rw-r--r--src/location/maps/qgeomapparameter_p.h4
-rw-r--r--src/plugins/geoservices/mapboxgl/qgeoserviceproviderpluginmapboxgl.cpp9
-rw-r--r--src/plugins/geoservices/osm/qgeoroutereplyosm.cpp2
10 files changed, 73 insertions, 25 deletions
diff --git a/src/3rdparty/mapbox-gl-native b/src/3rdparty/mapbox-gl-native
-Subproject 572822c8ca15be190b43afbf7f91d132e988bf2
+Subproject 8c1be4ec01ef46bf453856531ebf53b48ce3dbe
diff --git a/src/imports/location/location.cpp b/src/imports/location/location.cpp
index 818ba709..73700f7a 100644
--- a/src/imports/location/location.cpp
+++ b/src/imports/location/location.cpp
@@ -184,6 +184,9 @@ public:
minor = 3;
qmlRegisterType<QDeclarativeGeoWaypoint>(uri, major, minor, "Waypoint");
+ // Register the latest Qt version as QML type version
+ qmlRegisterModule(uri, QT_VERSION_MAJOR, QT_VERSION_MINOR);
+
//registrations below are version independent
qRegisterMetaType<QPlaceCategory>();
qRegisterMetaType<QPlace>();
diff --git a/src/imports/location/plugins.qmltypes b/src/imports/location/plugins.qmltypes
index e866cac7..db6c09f3 100644
--- a/src/imports/location/plugins.qmltypes
+++ b/src/imports/location/plugins.qmltypes
@@ -4,7 +4,7 @@ import QtQuick.tooling 1.2
// It is used for QML tooling purposes only.
//
// This file was auto-generated by:
-// 'qmlplugindump -nonrelocatable QtLocation 5.9'
+// 'qmlplugindump -nonrelocatable QtLocation 5.10'
Module {
dependencies: ["QtQuick 2.8"]
@@ -91,6 +91,19 @@ Module {
exportMetaObjectRevisions: [0]
}
Component {
+ name: "QDeclarativeGeoCameraCapabilities"
+ prototype: "QObject"
+ exports: ["QtLocation/CameraCapabilities 5.10"]
+ isCreatable: false
+ exportMetaObjectRevisions: [0]
+ Property { name: "minimumZoomLevel"; type: "double"; isReadonly: true }
+ Property { name: "maximumZoomLevel"; type: "double"; isReadonly: true }
+ Property { name: "minimumTilt"; type: "double"; isReadonly: true }
+ Property { name: "maximumTilt"; type: "double"; isReadonly: true }
+ Property { name: "minimumFieldOfView"; type: "double"; isReadonly: true }
+ Property { name: "maximumFieldOfView"; type: "double"; isReadonly: true }
+ }
+ Component {
name: "QDeclarativeGeoManeuver"
prototype: "QObject"
exports: [
@@ -223,6 +236,16 @@ Module {
Parameter { name: "ready"; type: "bool" }
}
Method {
+ name: "setBearing"
+ Parameter { name: "bearing"; type: "double" }
+ Parameter { name: "coordinate"; type: "QGeoCoordinate" }
+ }
+ Method {
+ name: "alignCoordinateToPoint"
+ Parameter { name: "coordinate"; type: "QGeoCoordinate" }
+ Parameter { name: "point"; type: "QPointF" }
+ }
+ Method {
name: "removeMapItem"
Parameter { name: "item"; type: "QDeclarativeGeoMapItemBase"; isPointer: true }
}
@@ -238,6 +261,14 @@ Module {
name: "removeMapItemGroup"
Parameter { name: "itemGroup"; type: "QDeclarativeGeoMapItemGroup"; isPointer: true }
}
+ Method {
+ name: "removeMapItemView"
+ Parameter { name: "itemView"; type: "QDeclarativeGeoMapItemView"; isPointer: true }
+ }
+ Method {
+ name: "addMapItemView"
+ Parameter { name: "itemView"; type: "QDeclarativeGeoMapItemView"; isPointer: true }
+ }
Method { name: "clearMapItems" }
Method {
name: "addMapParameter"
@@ -388,6 +419,13 @@ Module {
Property { name: "description"; type: "string"; isReadonly: true }
Property { name: "mobile"; type: "bool"; isReadonly: true }
Property { name: "night"; revision: 1; type: "bool"; isReadonly: true }
+ Property {
+ name: "cameraCapabilities"
+ type: "QDeclarativeGeoCameraCapabilities"
+ isReadonly: true
+ isPointer: true
+ }
+ Property { name: "metadata"; type: "QVariantMap"; isReadonly: true }
}
Component {
name: "QDeclarativeGeoRoute"
@@ -482,7 +520,8 @@ Module {
"TunnelFeature": 16,
"DirtRoadFeature": 32,
"ParksFeature": 64,
- "MotorPoolLaneFeature": 128
+ "MotorPoolLaneFeature": 128,
+ "TrafficFeature": 256
}
}
Enum {
@@ -711,7 +750,6 @@ Module {
Property {
name: "required"
type: "QDeclarativeGeoServiceProviderRequirements"
- isReadonly: true
isPointer: true
}
Property { name: "locales"; type: "QStringList" }
@@ -771,6 +809,7 @@ Module {
name: "valueChanged"
Parameter { name: "value"; type: "QVariant" }
}
+ Signal { name: "initialized" }
}
Component {
name: "QDeclarativeGeoServiceProviderRequirements"
@@ -1067,6 +1106,10 @@ Module {
name: "removeCoordinate"
Parameter { name: "index"; type: "int" }
}
+ Method {
+ name: "setPath"
+ Parameter { name: "path"; type: "QGeoPath" }
+ }
}
Component {
name: "QDeclarativeRatings"
diff --git a/src/imports/positioning/plugins.qmltypes b/src/imports/positioning/plugins.qmltypes
index 859736a1..d9791c6d 100644
--- a/src/imports/positioning/plugins.qmltypes
+++ b/src/imports/positioning/plugins.qmltypes
@@ -4,7 +4,7 @@ import QtQuick.tooling 1.2
// It is used for QML tooling purposes only.
//
// This file was auto-generated by:
-// 'qmlplugindump -nonrelocatable QtPositioning 5.9'
+// 'qmlplugindump -nonrelocatable QtPositioning 5.10'
Module {
dependencies: ["QtQuick 2.8"]
@@ -73,6 +73,12 @@ Module {
type: "QGeoPath"
Parameter { name: "value"; type: "QJSValue" }
}
+ Method { name: "polygon"; type: "QGeoPath" }
+ Method {
+ name: "polygon"
+ type: "QGeoPath"
+ Parameter { name: "value"; type: "QVariantList" }
+ }
Method {
name: "shapeToCircle"
type: "QGeoCircle"
@@ -88,6 +94,11 @@ Module {
type: "QGeoPath"
Parameter { name: "shape"; type: "QGeoShape" }
}
+ Method {
+ name: "shapeToPolygon"
+ type: "QGeoPolygon"
+ Parameter { name: "shape"; type: "QGeoShape" }
+ }
}
Component {
name: "QDeclarativeGeoAddress"
@@ -122,10 +133,9 @@ Module {
exports: [
"QtPositioning/Position 5.0",
"QtPositioning/Position 5.3",
- "QtPositioning/Position 5.4",
- "QtPositioning/Position 5.9"
+ "QtPositioning/Position 5.4"
]
- exportMetaObjectRevisions: [0, 1, 2, 2]
+ exportMetaObjectRevisions: [0, 1, 2]
Property { name: "latitudeValid"; type: "bool"; isReadonly: true }
Property { name: "longitudeValid"; type: "bool"; isReadonly: true }
Property { name: "altitudeValid"; type: "bool"; isReadonly: true }
@@ -209,7 +219,8 @@ Module {
"UnknownType": 0,
"RectangleType": 1,
"CircleType": 2,
- "PathType": 3
+ "PathType": 3,
+ "PolygonType": 4
}
}
Property { name: "type"; type: "ShapeType"; isReadonly: true }
diff --git a/src/imports/positioning/positioning.cpp b/src/imports/positioning/positioning.cpp
index 0dd5b968..1f7f9498 100644
--- a/src/imports/positioning/positioning.cpp
+++ b/src/imports/positioning/positioning.cpp
@@ -588,10 +588,8 @@ public:
minor = 4;
qmlRegisterType<QDeclarativePosition, 2>(uri, major, minor, "Position");
- // Register the 5.9 types
- // Introduction of 5.9 version; existing 5.4 exports become automatically available under 5.9
- minor = 9;
- qmlRegisterType<QDeclarativePosition, 2>(uri, major, minor, "Position");
+ // Register the latest Qt version as QML type version
+ qmlRegisterModule(uri, QT_VERSION_MAJOR, QT_VERSION_MINOR);
} else {
qDebug() << "Unsupported URI given to load positioning QML plugin: " << QLatin1String(uri);
}
diff --git a/src/location/configure.json b/src/location/configure.json
index 4de6e865..bfa3d6f2 100644
--- a/src/location/configure.json
+++ b/src/location/configure.json
@@ -37,7 +37,7 @@
"condition": [
"features.opengl",
"features.c++14",
- "!config.qnx && (!config.win32 || config.mingw)"
+ "!config.qnx && !config.intel_icc && (!config.win32 || config.mingw)"
],
"output": [ "privateFeature" ]
},
diff --git a/src/location/doc/qtlocation.qdocconf b/src/location/doc/qtlocation.qdocconf
index 58eeaef7..464e8e76 100644
--- a/src/location/doc/qtlocation.qdocconf
+++ b/src/location/doc/qtlocation.qdocconf
@@ -43,6 +43,8 @@ sourcedirs += .. \
examplesinstallpath = location
+manifestmeta.highlighted.names = "QtLocation/Map Viewer (QML)"
+
exampledirs += ../../../examples/location \
snippets/
diff --git a/src/location/maps/qgeomapparameter_p.h b/src/location/maps/qgeomapparameter_p.h
index 90a446ff..413b420e 100644
--- a/src/location/maps/qgeomapparameter_p.h
+++ b/src/location/maps/qgeomapparameter_p.h
@@ -68,8 +68,8 @@ public:
bool operator==(const QGeoMapParameter &other) const;
- QString type() const;
- void setType(const QString &type);
+ virtual QString type() const;
+ virtual void setType(const QString &type);
void updateProperty(const char *propertyName, QVariant value);
diff --git a/src/plugins/geoservices/mapboxgl/qgeoserviceproviderpluginmapboxgl.cpp b/src/plugins/geoservices/mapboxgl/qgeoserviceproviderpluginmapboxgl.cpp
index c7d5d3ee..dd25c99e 100644
--- a/src/plugins/geoservices/mapboxgl/qgeoserviceproviderpluginmapboxgl.cpp
+++ b/src/plugins/geoservices/mapboxgl/qgeoserviceproviderpluginmapboxgl.cpp
@@ -65,15 +65,6 @@ QGeoCodingManagerEngine *QGeoServiceProviderFactoryMapboxGL::createGeocodingMana
QGeoMappingManagerEngine *QGeoServiceProviderFactoryMapboxGL::createMappingManagerEngine(
const QVariantMap &parameters, QGeoServiceProvider::Error *error, QString *errorString) const
{
-#ifdef Q_OS_WIN
- if (QOpenGLContext::openGLModuleType() != QOpenGLContext::LibGLES) {
- qWarning("The Mapbox GL plugin only supports OpenGL ES on Windows. \
- Try setting the environment variable QT_OPENGL to 'angle'.");
-
- return 0;
- }
-#endif
-
return new QGeoMappingManagerEngineMapboxGL(parameters, error, errorString);
}
diff --git a/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp b/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp
index 6924fda7..732e8d72 100644
--- a/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp
+++ b/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp
@@ -77,7 +77,7 @@ void QGeoRouteReplyOsm::networkReplyFinished()
QGeoRouteReply::Error error = parser->parseReply(routes, errorString, reply->readAll());
if (error == QGeoRouteReply::NoError) {
- setRoutes(routes.mid(0,1)); // TODO QTBUG-56426
+ setRoutes(routes.mid(0, request().numberAlternativeRoutes() + 1));
// setError(QGeoRouteReply::NoError, status); // can't do this, or NoError is emitted and does damages
setFinished(true);
} else {