summaryrefslogtreecommitdiff
path: root/src/imports/location/location.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/location/location.cpp')
-rw-r--r--src/imports/location/location.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/location/location.cpp b/src/imports/location/location.cpp
index 9c89d3b..f96b8c2 100644
--- a/src/imports/location/location.cpp
+++ b/src/imports/location/location.cpp
@@ -180,6 +180,9 @@ public:
qmlRegisterUncreatableType<QDeclarativeGeoCameraCapabilities>(uri, major, minor, "CameraCapabilities"
, QStringLiteral("CameraCapabilities is not intended instantiable by developer."));
+ // 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>();