diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-08-30 18:09:37 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-09-06 11:48:47 -0700 |
commit | 652b78657ebe18ff101d3f6cd2ac9f3458db1881 (patch) | |
tree | 10df535833370de16c1ff056af6806d533f8ed55 /map-widget | |
parent | b7665251835cb6786c3b268fd0d04d69dccf36ed (diff) | |
download | subsurface-652b78657ebe18ff101d3f6cd2ac9f3458db1881.tar.gz |
Map: calculate the z value in the model
Since not fully reloading the map on selection change,
the selected sites were not moved to the top. Not calculating
the z-value in QML, but making it a simple model property
helps.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'map-widget')
-rw-r--r-- | map-widget/qml/MapWidget.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/map-widget/qml/MapWidget.qml b/map-widget/qml/MapWidget.qml index fb5545e88..8116163cf 100644 --- a/map-widget/qml/MapWidget.qml +++ b/map-widget/qml/MapWidget.qml @@ -56,7 +56,7 @@ Item { anchorPoint.x: 0 anchorPoint.y: mapItemImage.height coordinate: model.coordinate - z: mapHelper.model.isSelected(model.divesite) ? mapHelper.model.count - 1 : 0 + z: model.z sourceItem: Image { id: mapItemImage source: model.pixmap |