mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mapwidget.qml: update the Z order of selected markers
If a marker is selected bring it up front (high Z value) else set it behind everything else. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
6c640158e8
commit
24d5485a88
1 changed files with 1 additions and 0 deletions
|
@ -41,6 +41,7 @@ Item {
|
||||||
anchorPoint.x: 0
|
anchorPoint.x: 0
|
||||||
anchorPoint.y: mapItemImage.height
|
anchorPoint.y: mapItemImage.height
|
||||||
coordinate: model.coordinate
|
coordinate: model.coordinate
|
||||||
|
z: mapHelper.model.selectedUuid === model.uuid ? mapHelper.model.count - 1 : 0
|
||||||
sourceItem: Image {
|
sourceItem: Image {
|
||||||
id: mapItemImage;
|
id: mapItemImage;
|
||||||
source: "qrc:///mapwidget-marker" + (mapHelper.model.selectedUuid === model.uuid ? "-selected" : "");
|
source: "qrc:///mapwidget-marker" + (mapHelper.model.selectedUuid === model.uuid ? "-selected" : "");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue