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:
Dirk Hohndel 2016-01-05 06:59:04 -08:00
parent e401e725cc
commit 415536aba9

View file

@ -7,6 +7,7 @@ import org.subsurfacedivelog.mobile 1.0
import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
Item {
property alias dateText: txtDate.text
property alias locationText: txtLocation.text
property string gpsText
property alias airtempText: txtAirTemp.text
@ -33,9 +34,17 @@ Item {
MobileComponents.Heading {
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 {
Layout.alignment: Qt.AlignRight
text: "Location:"