diff options
author | Arseniy Movshev <dodoradio@outlook.com> | 2023-01-15 16:59:31 +0000 |
---|---|---|
committer | Arseniy Movshev <dodoradio@outlook.com> | 2023-01-15 22:46:31 +0000 |
commit | 03bf14b9d70f10e404700de798845e3b2a4b2efe (patch) | |
tree | e0dc8f024908624522778be5effb6adf9128b6d2 | |
parent | 1f81686f00869dce6cc33e1bc92bf24370ef3e12 (diff) |
Fix date formatting in textbox and some spacing issues
-rw-r--r-- | src/SetPointPage.qml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/SetPointPage.qml b/src/SetPointPage.qml index fbd9131..c22f0c3 100644 --- a/src/SetPointPage.qml +++ b/src/SetPointPage.qml @@ -20,6 +20,7 @@ Item { root.coord = QtPositioning.coordinate(currWaypointData[1][0],currWaypointData[1][1]) root.selectedIcon = currWaypointData[0] root.selectedColor = currWaypointData[2] + textbox.text = currWaypointData[3] } else { editIndex = waypointArray.length selectedColor = colours.primary @@ -44,9 +45,8 @@ Item { id: textBox width: parent.width 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() } ListView { id: iconSelectorView @@ -91,7 +91,6 @@ Item { } Row { height: root.width*0.2 - width: parent.width anchors.horizontalCenter: parent.horizontalCenter Asteroid.IconButton { height: parent.height @@ -118,7 +117,7 @@ Item { writebuffer[1] = [coord.latitude,coord.longitude] writebuffer[2] = selectedColor //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 writebuffer[3] = textBox.text - writebuffer[4] = Date.now() + writebuffer[4] = Date waypointArray[index] = writebuffer waypointList.value = JSON.stringify(waypointArray) setPointControls.visible = false |