summaryrefslogtreecommitdiff
path: root/src/SetPointPage.qml
diff options
context:
space:
mode:
authorArseniy Movshev <dodoradio@outlook.com>2023-01-07 19:22:04 +0000
committerArseniy Movshev <dodoradio@outlook.com>2023-01-07 20:20:07 +0000
commit7dfd22e942567bf151a8d373a64e6aed2e662b89 (patch)
tree920d4947d68290362cd5fd22d546397c15fa0f39 /src/SetPointPage.qml
parent920f90cff9ce91943227c1dad4e6d3577021b4f8 (diff)
Add a page for editing and deleting waypoints
Diffstat (limited to 'src/SetPointPage.qml')
-rw-r--r--src/SetPointPage.qml30
1 files changed, 18 insertions, 12 deletions
diff --git a/src/SetPointPage.qml b/src/SetPointPage.qml
index e036001..1b5f571 100644
--- a/src/SetPointPage.qml
+++ b/src/SetPointPage.qml
@@ -6,11 +6,6 @@ import Nemo.Configuration 1.0
Item {
id: root
- // FlatMesh {
- // centerColor: "#003ee9"
- // outerColor: "#00bc1b"
- // anchors.fill: parent
- // }
Asteroid.PageHeader {
text: "Add waypoint"
}
@@ -41,7 +36,7 @@ Item {
ListView {
id: iconSelectorView
width: parent.width
- height: width*0.2
+ height: root.height*0.2
orientation: ListView.Horizontal
model: iconModel
delegate: Asteroid.IconButton {
@@ -79,12 +74,23 @@ Item {
}
}
}
- Asteroid.IconButton {
- width: parent.width*0.2
- height: width
- iconName: "ios-checkmark-circle-outline"
- anchors.horizontalCenter: parent.horizontalCenter
- onClicked: appendWayPoint()
+ Row {
+ height: root.width*0.2
+ width: parent.width
+ Asteroid.IconButton {
+ height: parent.height
+ width: height
+ iconName: "ios-checkmark-circle-outline"
+ anchors.horizontalCenter: parent.horizontalCenter
+ onClicked: appendWayPoint()
+ }
+ Asteroid.IconButton {
+ height: parent.height
+ width: height
+ iconName: "ios-trash-circle"
+ anchors.horizontalCenter: parent.horizontalCenter
+ onClicked: removeWaypoint()
+ }
}
Item { width: parent.width ; height: root.width*0.2 }
}