diff options
author | Arseniy Movshev <dodoradio@outlook.com> | 2023-01-07 19:22:04 +0000 |
---|---|---|
committer | Arseniy Movshev <dodoradio@outlook.com> | 2023-01-07 20:20:07 +0000 |
commit | 7dfd22e942567bf151a8d373a64e6aed2e662b89 (patch) | |
tree | 920d4947d68290362cd5fd22d546397c15fa0f39 /src/MainMapView.qml | |
parent | 920f90cff9ce91943227c1dad4e6d3577021b4f8 (diff) |
Add a page for editing and deleting waypoints
Diffstat (limited to 'src/MainMapView.qml')
-rw-r--r-- | src/MainMapView.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/MainMapView.qml b/src/MainMapView.qml index 2cefbeb..40c42c8 100644 --- a/src/MainMapView.qml +++ b/src/MainMapView.qml @@ -78,6 +78,7 @@ Item { mapItem.coordinate = QtPositioning.coordinate(currWaypointCoord[0],currWaypointCoord[1]) mapItem.iconName = currWaypointData[0] mapItem.iconColor = currWaypointData[2] + mapItem.index = i mapView.addMapItem(mapItem) } } @@ -96,6 +97,9 @@ Item { pageStack.push(setPointPage,{coord: mapView.center}) } } + function editWaypoint(number) { + console.log("invoking the edit page for waypoint number ", number) + } Component { id: waypoint MapWaypoint { |