summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-05 06:59:04 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-05 22:50:31 -0800
commit415536aba9cc805c2ed2df2e6981820e2b0680b2 (patch)
tree9a2ad4eb237ac7b6f015a370da4dabe2f2ed5256 /qt-mobile
parente401e725cc3cbbd358b76930fac4c229b5f2fad3 (diff)
downloadsubsurface-415536aba9cc805c2ed2df2e6981820e2b0680b2.tar.gz
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>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qml/DiveDetailsEdit.qml13
1 files changed, 11 insertions, 2 deletions
diff --git a/qt-mobile/qml/DiveDetailsEdit.qml b/qt-mobile/qml/DiveDetailsEdit.qml
index 9a639ddb7..25b10ba2a 100644
--- a/qt-mobile/qml/DiveDetailsEdit.qml
+++ b/qt-mobile/qml/DiveDetailsEdit.qml
@@ -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:"