diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-09-24 03:02:36 +0200 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-09-24 03:02:36 +0200 |
commit | 1001e39904914183bfaba31cf887f731b4fb3fb0 (patch) | |
tree | 8d137e281aa88c3c38fffdb27e06f5e2037c7940 | |
parent | b9948da4b11d4bafb814432d068d0d4cbd2e9175 (diff) | |
parent | 0cb5a2f498b38331c6c3bdd5d53777acadd5feea (diff) | |
download | qtlocation-1001e39904914183bfaba31cf887f731b4fb3fb0.tar.gz |
Merge remote-tracking branch 'origin/5.14' into 5.15
Change-Id: I4ecaf498b6f322c83170252dd1234ce816e40f69
-rw-r--r-- | dist/changes-5.12.5 | 20 | ||||
-rw-r--r-- | dist/changes-5.13.1 | 20 | ||||
m--------- | src/3rdparty/mapbox-gl-native | 0 | ||||
-rw-r--r-- | src/positioning/qgeopositioninfosource.cpp | 4 | ||||
-rw-r--r-- | src/positioning/qgeopositioninfosource.h | 4 | ||||
-rw-r--r-- | src/positioning/qgeopositioninfosource_p.h | 2 | ||||
-rw-r--r-- | src/positioning/qgeopositioninfosourcefactory.cpp | 39 | ||||
-rw-r--r-- | src/positioning/qgeosatelliteinfosource.h | 2 | ||||
-rw-r--r-- | src/positioningquick/qdeclarativepositionsource.cpp | 2 | ||||
-rw-r--r-- | src/positioningquick/qdeclarativepositionsource_p.h | 2 | ||||
-rw-r--r-- | tests/auto/auto.pro | 23 | ||||
-rw-r--r-- | tests/auto/positionplugin/plugin.cpp | 2 |
12 files changed, 106 insertions, 14 deletions
diff --git a/dist/changes-5.12.5 b/dist/changes-5.12.5 new file mode 100644 index 00000000..e8be9316 --- /dev/null +++ b/dist/changes-5.12.5 @@ -0,0 +1,20 @@ +Qt 5.12.5 is a bug-fix release. It maintains both forward and backward +compatibility (source and binary) with Qt 5.12.0 through 5.12.4. + +For more details, refer to the online documentation included in this +distribution. The documentation is also available online: + +https://doc.qt.io/qt-5/index.html + +The Qt version 5.12 series is binary compatible with the 5.11.x series. +Applications compiled for 5.11 will continue to run with 5.12. + +Some of the changes listed in this file include issue tracking numbers +corresponding to tasks in the Qt Bug Tracker: + +https://bugreports.qt.io/ + +Each of these identifiers can be entered in the bug tracker to obtain more +information about a particular change. + + - This release contains only minor code improvements. diff --git a/dist/changes-5.13.1 b/dist/changes-5.13.1 new file mode 100644 index 00000000..57ebdbeb --- /dev/null +++ b/dist/changes-5.13.1 @@ -0,0 +1,20 @@ +Qt 5.13.1 is a bug-fix release. It maintains both forward and backward +compatibility (source and binary) with Qt 5.13.0. + +For more details, refer to the online documentation included in this +distribution. The documentation is also available online: + +https://doc.qt.io/qt-5/index.html + +The Qt version 5.13 series is binary compatible with the 5.12.x series. +Applications compiled for 5.12 will continue to run with 5.13. + +Some of the changes listed in this file include issue tracking numbers +corresponding to tasks in the Qt Bug Tracker: + +https://bugreports.qt.io/ + +Each of these identifiers can be entered in the bug tracker to obtain more +information about a particular change. + + - This release contains only minor code improvements. diff --git a/src/3rdparty/mapbox-gl-native b/src/3rdparty/mapbox-gl-native -Subproject 4b85252fbe811a786c6ee9eabedb7639b031dc5 +Subproject 5233c75b3f6c73623c5473b2d6573f31f3ddb4b diff --git a/src/positioning/qgeopositioninfosource.cpp b/src/positioning/qgeopositioninfosource.cpp index 69fcdef0..4690f8a3 100644 --- a/src/positioning/qgeopositioninfosource.cpp +++ b/src/positioning/qgeopositioninfosource.cpp @@ -133,7 +133,7 @@ void QGeoPositionInfoSourcePrivate::loadPlugin() factory = factoryV2; } -bool QGeoPositionInfoSourcePrivate::setBackendProperty(const QString &/*name*/, QVariant /*value*/) +bool QGeoPositionInfoSourcePrivate::setBackendProperty(const QString &/*name*/, const QVariant & /*value*/) { return false; } @@ -241,7 +241,7 @@ QString QGeoPositionInfoSource::sourceName() const \sa backendProperty \since Qt 5.14 */ -bool QGeoPositionInfoSource::setBackendProperty(const QString &name, QVariant value) +bool QGeoPositionInfoSource::setBackendProperty(const QString &name, const QVariant &value) { return d->setBackendProperty(name, value); } diff --git a/src/positioning/qgeopositioninfosource.h b/src/positioning/qgeopositioninfosource.h index eaf5e106..15465bdf 100644 --- a/src/positioning/qgeopositioninfosource.h +++ b/src/positioning/qgeopositioninfosource.h @@ -87,7 +87,7 @@ public: QString sourceName() const; - bool setBackendProperty(const QString &name, QVariant value); + bool setBackendProperty(const QString &name, const QVariant &value); QVariant backendProperty(const QString &name) const; static QGeoPositionInfoSource *createDefaultSource(QObject *parent); @@ -110,7 +110,7 @@ Q_SIGNALS: void supportedPositioningMethodsChanged(); protected: - QGeoPositionInfoSource(QGeoPositionInfoSourcePrivate &dd, QObject *parent); + explicit QGeoPositionInfoSource(QGeoPositionInfoSourcePrivate &dd, QObject *parent); private: Q_DISABLE_COPY(QGeoPositionInfoSource) diff --git a/src/positioning/qgeopositioninfosource_p.h b/src/positioning/qgeopositioninfosource_p.h index ccd92a4e..2ae93055 100644 --- a/src/positioning/qgeopositioninfosource_p.h +++ b/src/positioning/qgeopositioninfosource_p.h @@ -76,7 +76,7 @@ public: void loadMeta(); void loadPlugin(); - virtual bool setBackendProperty(const QString &name, QVariant value); + virtual bool setBackendProperty(const QString &name, const QVariant &value); virtual QVariant backendProperty(const QString &name) const; static QHash<QString, QJsonObject> plugins(bool reload = false); diff --git a/src/positioning/qgeopositioninfosourcefactory.cpp b/src/positioning/qgeopositioninfosourcefactory.cpp index 76803566..afb0a1d3 100644 --- a/src/positioning/qgeopositioninfosourcefactory.cpp +++ b/src/positioning/qgeopositioninfosourcefactory.cpp @@ -84,6 +84,45 @@ QT_BEGIN_NAMESPACE QGeoPositionInfoSourceFactory::~QGeoPositionInfoSourceFactory() {} +/*! + \class QGeoPositionInfoSourceFactoryV2 + \inmodule QtPositioning + \since 5.14 + + \brief The QGeoPositionInfoSourceFactoryV2 class extends + QGeoPositionInfoSourceFactory, adding factory methods taking a parameters argument. + + This interface has the priority over the older one with plugins implementing it, + when creating a positioning source (position, satellite or area monitor) +*/ + +/*! + \fn QGeoPositionInfoSource *QGeoPositionInfoSourceFactoryV2::positionInfoSourceWithParameters(QObject *parent, const QVariantMap ¶meters) + + Returns a new QGeoPositionInfoSource associated with this plugin + with parent \a parent, and using \a parameters as configuration parameters. + Can also return 0, in which case the plugin loader will use the factory with + the next highest priority. + */ + +/*! + \fn QGeoSatelliteInfoSource *QGeoPositionInfoSourceFactoryV2::satelliteInfoSourceWithParameters(QObject *parent, const QVariantMap ¶meters) + + Returns a new QGeoSatelliteInfoSource associated with this plugin + with parent \a parent., and using \a parameters as configuration parameters. + Can also return 0, in which case the plugin loader will use the factory with + the next highest priority. + */ + +/*! + \fn QGeoAreaMonitorSource *QGeoPositionInfoSourceFactoryV2::areaMonitorWithParameters(QObject *parent, const QVariantMap ¶meters); + + Returns a new QGeoAreaMonitorSource associated with this plugin with parent + \a parent, and using \a parameters as configuration parameters. + Can also return 0, in which case the plugin loader will use the factory with + the next highest priority. + */ + QGeoPositionInfoSourceFactoryV2::~QGeoPositionInfoSourceFactoryV2() {} diff --git a/src/positioning/qgeosatelliteinfosource.h b/src/positioning/qgeosatelliteinfosource.h index 4f073864..e9c4fa19 100644 --- a/src/positioning/qgeosatelliteinfosource.h +++ b/src/positioning/qgeosatelliteinfosource.h @@ -91,7 +91,7 @@ Q_SIGNALS: void error(QGeoSatelliteInfoSource::Error); protected: - QGeoSatelliteInfoSource(QGeoSatelliteInfoSourcePrivate &dd, QObject *parent); + explicit QGeoSatelliteInfoSource(QGeoSatelliteInfoSourcePrivate &dd, QObject *parent); private: Q_DISABLE_COPY(QGeoSatelliteInfoSource) diff --git a/src/positioningquick/qdeclarativepositionsource.cpp b/src/positioningquick/qdeclarativepositionsource.cpp index cfbcc9da..6e042d9f 100644 --- a/src/positioningquick/qdeclarativepositionsource.cpp +++ b/src/positioningquick/qdeclarativepositionsource.cpp @@ -873,7 +873,7 @@ void QDeclarativePositionSource::componentComplete() \sa backendProperty, QGeoPositionInfoSource::setBackendProperty */ -bool QDeclarativePositionSource::setBackendProperty(const QString &name, QVariant value) +bool QDeclarativePositionSource::setBackendProperty(const QString &name, const QVariant &value) { if (m_positionSource) return m_positionSource->setBackendProperty(name, value); diff --git a/src/positioningquick/qdeclarativepositionsource_p.h b/src/positioningquick/qdeclarativepositionsource_p.h index dff0006c..da6f8305 100644 --- a/src/positioningquick/qdeclarativepositionsource_p.h +++ b/src/positioningquick/qdeclarativepositionsource_p.h @@ -131,7 +131,7 @@ public: void classBegin() { } void componentComplete(); - Q_INVOKABLE bool setBackendProperty(const QString &name, QVariant value); + Q_INVOKABLE bool setBackendProperty(const QString &name, const QVariant &value); Q_INVOKABLE QVariant backendProperty(const QString &name) const; public Q_SLOTS: diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro index 05559d12..2b04d110 100644 --- a/tests/auto/auto.pro +++ b/tests/auto/auto.pro @@ -2,6 +2,8 @@ TEMPLATE = subdirs qtHaveModule(location) { + SUBDIRS += geotestplugin # several subtargets depend on this + #Place unit tests SUBDIRS += qplace \ qplaceattribute \ @@ -25,19 +27,22 @@ qtHaveModule(location) { qplacesearchsuggestionreply \ qplaceuser - !android: SUBDIRS += \ + !android: { + SUBDIRS += \ qplacemanager \ qplacemanager_nokia \ qplacemanager_unsupported \ placesplugin_unsupported + qplacemanager.depends = geotestplugin + } + #misc tests SUBDIRS += doublevectors !android: SUBDIRS += cmake qmlinterface # looks for .qmls locally #Map and Navigation tests - SUBDIRS += geotestplugin \ - qgeocodingmanagerplugins \ + SUBDIRS += qgeocodingmanagerplugins \ qgeocameracapabilities\ qgeocameradata \ qgeocodereply \ @@ -54,17 +59,25 @@ qtHaveModule(location) { qgeocameratiles # These use plugins - !android: SUBDIRS += qgeoserviceprovider \ + !android: { + SUBDIRS += qgeoserviceprovider \ qgeoroutingmanager \ nokia_services \ qgeocodingmanager \ qgeotiledmap + qgeoserviceprovider.depends = geotestplugin + qgeotiledmap.depends = geotestplugin + } qtHaveModule(quick):!android { SUBDIRS += declarative_geoshape \ declarative_core + declarative_core.depends = geotestplugin - !mac: SUBDIRS += declarative_ui + !mac: { + SUBDIRS += declarative_ui + declarative_ui.depends = geotestplugin + } } } diff --git a/tests/auto/positionplugin/plugin.cpp b/tests/auto/positionplugin/plugin.cpp index 9d5c7dd5..f28797b5 100644 --- a/tests/auto/positionplugin/plugin.cpp +++ b/tests/auto/positionplugin/plugin.cpp @@ -69,7 +69,7 @@ private slots: class DummySourcePrivate : public QGeoPositionInfoSourcePrivate { public: - bool setBackendProperty(const QString &name, QVariant value) override + bool setBackendProperty(const QString &name, const QVariant &value) override { if (name == QStringLiteral("altitude")) { m_altitude = value.toReal(); |