Skip to content

Commit

Permalink
fixing qml warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Sep 10, 2024
1 parent b7cd4a0 commit 9ca7aec
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/qml/gps/MMMeasureDrawer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ MMDrawer {

readonly property alias panelHeight: root.height

property bool canCloseShape: mapCanvas.mapToolComponent.mapTool.canCloseShape
property bool closeShapeDone: mapCanvas.mapToolComponent.mapTool.closeShapeDone
property bool canUndo: mapCanvas.mapToolComponent.mapTool.canUndo
property bool canCloseShape: mapCanvas.mapToolComponent?.mapTool?.canCloseShape ?? false
property bool closeShapeDone: mapCanvas.mapToolComponent?.mapTool?.closeShapeDone ?? false
property bool canUndo: mapCanvas.mapToolComponent?.mapTool?.canUndo ?? false

property string length: __inputUtils.formatDistanceInProjectUnit( mapCanvas.mapToolComponent.mapTool.length, 1 )
property string perimeter: __inputUtils.formatDistanceInProjectUnit( mapCanvas.mapToolComponent.mapTool.perimeter, 1 )
property string area: __inputUtils.formatAreaInProjectUnit( mapCanvas.mapToolComponent.mapTool.area, 1 )
property string length: __inputUtils.formatDistanceInProjectUnit( mapCanvas.mapToolComponent?.mapTool?.length ?? 0, 1 )
property string perimeter: __inputUtils.formatDistanceInProjectUnit( mapCanvas.mapToolComponent?.mapTool?.perimeter ?? 0, 1 )
property string area: __inputUtils.formatAreaInProjectUnit( mapCanvas.mapToolComponent?.mapTool?.area ?? 0, 1 )

signal measureFinished()
signal measureDone()
Expand Down

0 comments on commit 9ca7aec

Please sign in to comment.