summaryrefslogtreecommitdiff
path: root/src/imports
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2019-08-20 18:03:25 +0200
committerpaolo <paolo.angelelli@qt.io>2019-08-21 17:30:17 +0200
commit3d2aac6ec0661e24acb166b4763b313d68993815 (patch)
tree2ebe2eaf4d605fbfac7345df940f6b08973820d5 /src/imports
parent04a433d99e62159ec81af2bc8ef11e61d62cfab0 (diff)
downloadqtlocation-3d2aac6ec0661e24acb166b4763b313d68993815.tar.gz
Add autoFadeIn property to map items
This property allows a user to disable the until now built-in behavior that makes map items fade in or fade out between zoom levels 1.5 and 2.5. By default the old behavior is kept. [ChangeLog][Location][MapItems] Added property to disable the automatic fade-in/fade-out behavior on low zoom levels Change-Id: Id764f12d34db528f533f14fd561604507681f216 Fixes: QTBUG-76867 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/location/location.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/imports/location/location.cpp b/src/imports/location/location.cpp
index fccb628d..40dffd5d 100644
--- a/src/imports/location/location.cpp
+++ b/src/imports/location/location.cpp
@@ -203,6 +203,8 @@ public:
minor = 14;
qmlRegisterType<QDeclarativeGeoMap, 14>(uri, major, minor, "Map");
+ qmlRegisterUncreatableType<QDeclarativeGeoMapItemBase, 14>(uri, major, minor, "GeoMapItemBase",
+ QStringLiteral("GeoMapItemBase is not intended instantiable by developer."));
// Register the latest Qt version as QML type version
qmlRegisterModule(uri, QT_VERSION_MAJOR, QT_VERSION_MINOR);