summaryrefslogtreecommitdiff
path: root/src/imports/locationlabs/locationlabs.cpp
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2020-04-07 03:01:46 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2020-04-07 03:01:46 +0200
commita8793c6d9695498b3a53793f21859421262b4541 (patch)
treea783f6f0a1bd6c8dc5c4c57438da981e6b5dd17f /src/imports/locationlabs/locationlabs.cpp
parentb06a07cf9fd474e11fbe467047e5fe0322b677f0 (diff)
parenteda2a7c286058176e1906d0ddc88d4e2cfbec55e (diff)
downloadqtlocation-a8793c6d9695498b3a53793f21859421262b4541.tar.gz
Merge remote-tracking branch 'origin/5.15' into dev
Change-Id: If3ebc0821be0d0206522adf8ff10040e80e34414
Diffstat (limited to 'src/imports/locationlabs/locationlabs.cpp')
-rw-r--r--src/imports/locationlabs/locationlabs.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/imports/locationlabs/locationlabs.cpp b/src/imports/locationlabs/locationlabs.cpp
index 09fba284..4c039967 100644
--- a/src/imports/locationlabs/locationlabs.cpp
+++ b/src/imports/locationlabs/locationlabs.cpp
@@ -52,8 +52,8 @@ QT_BEGIN_NAMESPACE
static QObject *singleton_type_factory(QQmlEngine *engine, QJSEngine *jsEngine)
{
- Q_UNUSED(engine);
- Q_UNUSED(jsEngine);
+ Q_UNUSED(engine)
+ Q_UNUSED(jsEngine)
return new LocationLabsSingleton;
}
@@ -66,7 +66,7 @@ class QtLocationLabsDeclarativeModule: public QQmlExtensionPlugin
FILE "plugin.json")
public:
- QtLocationLabsDeclarativeModule(QObject *parent = 0) : QQmlExtensionPlugin(parent) { }
+ QtLocationLabsDeclarativeModule(QObject *parent = nullptr) : QQmlExtensionPlugin(parent) { }
virtual void registerTypes(const char *uri)
{
if (QLatin1String(uri) == QLatin1String("Qt.labs.location")) {
@@ -82,9 +82,9 @@ public:
qmlRegisterType<QMapCircleObject>(uri, major, minor, "MapCircleObject");
qmlRegisterType<QMapPolygonObject>(uri, major, minor, "MapPolygonObject");
qmlRegisterType<QMapPolylineObject>(uri, major, minor, "MapPolylineObject");
- qmlRegisterType<QDeclarativeNavigationBasicDirections>();
+ qmlRegisterAnonymousType<QDeclarativeNavigationBasicDirections>(uri, major);
qmlRegisterType<QDeclarativeNavigator>(uri, major, minor, "Navigator");
- qmlRegisterType<QAbstractNavigator>();
+ qmlRegisterAnonymousType<QAbstractNavigator>(uri, major);
qmlRegisterSingletonType<LocationLabsSingleton>(uri, major, minor, "QtLocationLabs", singleton_type_factory);
} else {
qDebug() << "Unsupported URI given to load location QML plugin: " << QLatin1String(uri);