summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp
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/location/declarativemaps/qdeclarativepolygonmapitem.cpp
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/location/declarativemaps/qdeclarativepolygonmapitem.cpp')
-rw-r--r--src/location/declarativemaps/qdeclarativepolygonmapitem.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp b/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp
index fcfa14a5..7a3873a4 100644
--- a/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp
+++ b/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp
@@ -135,6 +135,17 @@ QT_BEGIN_NAMESPACE
\image api-mappolygon.png
*/
+/*!
+ \qmlproperty bool QtLocation::MapPolygon::autoFadeIn
+
+ This property holds whether the item automatically fades in when zooming into the map
+ starting from very low zoom levels. By default this is \c true.
+ Setting this property to \c false causes the map item to always have the opacity specified
+ with the \l QtQuick::Item::opacity property, which is 1.0 by default.
+
+ \since 5.14
+*/
+
QGeoMapPolygonGeometry::QGeoMapPolygonGeometry()
: assumeSimple_(false)
{