summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice_p.h
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2017-12-11 15:49:02 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2018-01-16 10:40:24 +0000
commit17c494dcd248c32891da940ef68b1e6b520175b8 (patch)
treed034eb170d9dd41dde3a129470c76e30280aff01 /src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice_p.h
parent2b6020a59ef503eeadabc532782f5e9e795fcf3f (diff)
downloadqtlocation-17c494dcd248c32891da940ef68b1e6b520175b8.tar.gz
Fix copyright notice performance when adding/removing items
This change avoids rescanning the list of map items every time an item is added or removed, to recompute the Z value at which the copyright notice should go. Task-number: QTBUG-64880 Change-Id: Ieea77669f0140e43085a76dfd9dfdee40a335f5a Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice_p.h')
-rw-r--r--src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice_p.h b/src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice_p.h
index 9b28299f..73ce48f1 100644
--- a/src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice_p.h
+++ b/src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice_p.h
@@ -70,7 +70,7 @@ public:
QDeclarativeGeoMapCopyrightNotice(QQuickItem *parent = Q_NULLPTR);
~QDeclarativeGeoMapCopyrightNotice();
- void setCopyrightsZ(int copyrightsZ);
+ void setCopyrightsZ(qreal copyrightsZ);
void setCopyrightsVisible(bool visible);
bool copyrightsVisible() const;