mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: add elements to allow editing the GPS coordinates
This isn't hooked up, yet, but provides the UI Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
00ac1c12db
commit
c111c4bb02
3 changed files with 17 additions and 5 deletions
|
|
@ -12,7 +12,7 @@ Item {
|
|||
property int number
|
||||
property alias dateText: txtDate.text
|
||||
property alias locationText: txtLocation.text
|
||||
property string gpsText
|
||||
property alias gpsText: txtGps.text
|
||||
property alias airtempText: txtAirTemp.text
|
||||
property alias watertempText: txtWaterTemp.text
|
||||
property alias suitText: txtSuit.text
|
||||
|
|
@ -25,6 +25,7 @@ Item {
|
|||
property alias startpressureText: txtStartPressure.text
|
||||
property alias endpressureText: txtEndPressure.text
|
||||
property alias gasmixText: txtGasMix.text
|
||||
property alias gpsCheckbox: checkboxGPS.checked
|
||||
|
||||
function saveData() {
|
||||
// apply the changes to the dive_table
|
||||
|
|
@ -89,10 +90,15 @@ Item {
|
|||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
// we should add a checkbox here that allows the user
|
||||
// to add the current location as the dive location
|
||||
// (think of someone adding a dive while on the boat or
|
||||
// at the dive site)
|
||||
Kirigami.Label {
|
||||
Layout.alignment: Qt.AlignRight
|
||||
text: "Coordinates:"
|
||||
}
|
||||
StyledTextField {
|
||||
id: txtGps
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
Kirigami.Label {
|
||||
Layout.alignment: Qt.AlignRight
|
||||
text: "Use current\nGPS location:"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue