diff options
author | Arseniy Movshev <dodoradio@outlook.com> | 2022-11-27 20:25:43 +0000 |
---|---|---|
committer | Arseniy Movshev <dodoradio@outlook.com> | 2023-01-07 15:46:45 +0000 |
commit | 452a1a4d5784cfc191485f4e77133ef3090ee693 (patch) | |
tree | 98cc099e6000848b034a58a2cedbdf86af6379bd /src/SetPointPage.qml | |
parent | de2b3d293d97eb85dc920e6facec684e79c69d43 (diff) |
changes to compass, overlays and waypoints
a very messy commit:
- add waypoints to show up on the map
- fix compass to work correctly
- fix centering of buttons on flat tyre watches
Diffstat (limited to '')
-rw-r--r-- | src/SetPointPage.qml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/SetPointPage.qml b/src/SetPointPage.qml index 50643b0..c2e8787 100644 --- a/src/SetPointPage.qml +++ b/src/SetPointPage.qml @@ -35,7 +35,7 @@ Item { height: parent.width*0.2 //for the default text, we probably want a date/time previewText: "Waypoint name" - text: Date().toLocaleString(Locale.ShortFormat) + text: Date.toLocaleString(Locale.ShortFormat) } ListView { id: iconSelectorView @@ -89,8 +89,11 @@ Item { } function appendWayPoint() { //the colours.primary is currently a placeholder. it would be nice to let users select colours, but I CBA to write a colour picker right now. - var newWayPointString = ">" + "selectedIcon" + ";" + coord + ";" + colours.primary + ";" + textBox.text + ";" + Date() + var newWayPointString = selectedIcon + ";" + coord.latitude + "," + coord.longitude + ";" + colours.primary + ";" + textBox.text + ";" + Date.now() + ">" console.log(newWayPointString) - pageStack.pop() + waypointList.value = waypointList.value + newWayPointString + setPointControls.visible = false + mapControls.visible = true + pageStack.pop(pageStack.currentLayer) } } |