summaryrefslogtreecommitdiff
path: root/src/imports/location/location.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-08-12 13:39:01 +0200
committerAlex Blasche <alexander.blasche@digia.com>2014-08-14 09:51:50 +0200
commitf55ae20fa3216e0fcaa7973b047ac5688e2c50bc (patch)
tree55b9b84d9a3ef2d86aa3f92b4c1da7a16c6b3422 /src/imports/location/location.cpp
parent05763575eb166a29073d1805a6fdd22a832cc0aa (diff)
downloadqtlocation-f55ae20fa3216e0fcaa7973b047ac5688e2c50bc.tar.gz
Fix revision and docs for new MapType::night property
This property was recently added but not properly advertised as Qt 5.4+ API element and the QML revision was not set. Change-Id: Iab6a125269d627d5e1b3a0e457f6a42708ea7026 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Diffstat (limited to 'src/imports/location/location.cpp')
-rw-r--r--src/imports/location/location.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imports/location/location.cpp b/src/imports/location/location.cpp
index 1adc80ad..0a1ff40b 100644
--- a/src/imports/location/location.cpp
+++ b/src/imports/location/location.cpp
@@ -158,7 +158,8 @@ public:
// Implicitly registers 5.3
minor = 4;
// For now there are no new types; just reregister one existing 5.0 type
- qmlRegisterType<QDeclarativeGeoServiceProvider >(uri, major, minor, "Plugin");
+ qmlRegisterUncreatableType<QDeclarativeGeoMapType, 1>(uri, major, minor, "MapType",
+ QStringLiteral("MapType is not intended instantiable by developer."));
//registrations below are version independent
qRegisterMetaType<QPlaceCategory>("QPlaceCategory");