add/delete route
diff --git a/src/main.qml b/src/main.qml
index 976faa2..6eb7b18 100644
--- a/src/main.qml
+++ b/src/main.qml
@@ -145,7 +145,7 @@
TableViewColumn{
role: "value"
title: "Value"
- width: 200
+ width: 300
}
}
}
@@ -164,6 +164,36 @@
}
}
}
+ Tab {
+ title: "Add/Delete Route"
+ Column {
+ spacing: 2
+ anchors.fill: parent
+ anchors.topMargin: 20
+ anchors.bottomMargin: 20
+ anchors.leftMargin: 20
+ }
+
+ Row {
+ spacing: 20
+ anchors.topMargin: 30
+ anchors.leftMargin: 10
+ anchors.rightMargin: 10
+ anchors.bottomMargin: 10
+ anchors.fill: parent
+ TextField {
+ focus: true
+ }
+ Button {
+ text: "Add Route"
+ onClicked: trayModel.addRoute(TextField.text);
+ }
+ Button {
+ text: "Delete Route"
+ onClicked: trayModel.deleteRoute(TextField.text);
+ }
+ }
+ }
}
Connections {
target: trayModel;