mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: handle editing of duration
I don't think these regular expressions are sufficiently exhaustive - but this is forward progress. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7f628404e6
commit
2c28b16b26
3 changed files with 40 additions and 2 deletions
|
@ -58,7 +58,7 @@ MobileComponents.Page {
|
|||
detailsEdit.buddyText, detailsEdit.divemasterText, detailsEdit.notesText)
|
||||
location = detailsEdit.locationText
|
||||
// gps = detailsEdit.gps
|
||||
// duration = detailsEdit.durationText
|
||||
duration = detailsEdit.durationText
|
||||
// depth = detailsEdit.depthText
|
||||
airtemp = detailsEdit.airtempText
|
||||
watertemp = detailsEdit.watertempText
|
||||
|
|
|
@ -15,6 +15,7 @@ Item {
|
|||
property alias buddyText: txtBuddy.text
|
||||
property alias divemasterText: txtDiveMaster.text
|
||||
property alias notesText: txtNotes.text
|
||||
property alias durationText: txtDuration.text
|
||||
ColumnLayout {
|
||||
anchors {
|
||||
left: parent.left
|
||||
|
@ -48,6 +49,16 @@ Item {
|
|||
// (think of someone adding a dive while on the boat or
|
||||
// at the dive site)
|
||||
|
||||
MobileComponents.Label {
|
||||
Layout.alignment: Qt.AlignRight
|
||||
text: "Duration:"
|
||||
}
|
||||
TextField {
|
||||
id: txtDuration
|
||||
text: duration
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
MobileComponents.Label {
|
||||
Layout.alignment: Qt.AlignRight
|
||||
text: "Air Temp:"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue