summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qdeclarativepolylinemapitem.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/qdeclarativepolylinemapitem.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/qdeclarativepolylinemapitem.cpp')
-rw-r--r--src/location/declarativemaps/qdeclarativepolylinemapitem.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/location/declarativemaps/qdeclarativepolylinemapitem.cpp b/src/location/declarativemaps/qdeclarativepolylinemapitem.cpp
index 63146fbc..5ca612db 100644
--- a/src/location/declarativemaps/qdeclarativepolylinemapitem.cpp
+++ b/src/location/declarativemaps/qdeclarativepolylinemapitem.cpp
@@ -297,6 +297,17 @@ static QList<QList<QDoubleVector2D> > clipLine(
\image api-mappolyline.png
*/
+/*!
+ \qmlproperty bool QtLocation::MapPolyline::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
+*/
+
QDeclarativeMapLineProperties::QDeclarativeMapLineProperties(QObject *parent) :
QObject(parent),
width_(1.0),