mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: in dive details edit, put date on its own line
This way we can support a simple way for the user to edit the date. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e401e725cc
commit
415536aba9
1 changed files with 11 additions and 2 deletions
|
@ -7,6 +7,7 @@ import org.subsurfacedivelog.mobile 1.0
|
||||||
import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
|
import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
property alias dateText: txtDate.text
|
||||||
property alias locationText: txtLocation.text
|
property alias locationText: txtLocation.text
|
||||||
property string gpsText
|
property string gpsText
|
||||||
property alias airtempText: txtAirTemp.text
|
property alias airtempText: txtAirTemp.text
|
||||||
|
@ -33,9 +34,17 @@ Item {
|
||||||
|
|
||||||
MobileComponents.Heading {
|
MobileComponents.Heading {
|
||||||
Layout.columnSpan: 2
|
Layout.columnSpan: 2
|
||||||
text: "Dive " + number + " (" + date + ")"
|
text: "Dive " + number
|
||||||
|
}
|
||||||
|
MobileComponents.Label {
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
text: "Date:"
|
||||||
|
}
|
||||||
|
TextField {
|
||||||
|
id: txtDate;
|
||||||
|
text: date;
|
||||||
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
text: "Location:"
|
text: "Location:"
|
||||||
|
|
Loading…
Add table
Reference in a new issue