From a11e719f1a754194d00406857fb195b4b41cbd4d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 29 Mar 2016 20:17:58 -0500 Subject: QML UI: add SAC rate to dive detail view Not sure why this wasn't there before, it's certainly one of the more interesting values for me. Signed-off-by: Dirk Hohndel --- qt-mobile/qml/DiveDetailsView.qml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'qt-mobile/qml/DiveDetailsView.qml') diff --git a/qt-mobile/qml/DiveDetailsView.qml b/qt-mobile/qml/DiveDetailsView.qml index 126a9154b..50539fc4a 100644 --- a/qt-mobile/qml/DiveDetailsView.qml +++ b/qt-mobile/qml/DiveDetailsView.qml @@ -249,10 +249,25 @@ Item { MobileComponents.Label { id: txtBuddy text: dive.buddy - Layout.columnSpan: 3 wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere - Layout.maximumWidth: detailsView.col2Width + detailsView.col3Width + detailsView.col4Width - Layout.preferredWidth: detailsView.col2Width + detailsView.col3Width + detailsView.col4Width + Layout.maximumWidth: detailsView.col2Width + Layout.preferredWidth: detailsView.col2Width + } + + MobileComponents.Label { + text: "SAC:" + wrapMode: Text.WrapAtWordBoundaryOrAnywhere + opacity: 0.6 + Layout.maximumWidth: detailsView.col3Width + Layout.preferredWidth: detailsView.col3Width + Layout.alignment: Qt.AlignRight + } + MobileComponents.Label { + id: txtSAC + text: dive.sac + wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere + Layout.maximumWidth: detailsView.col4Width + Layout.preferredWidth: detailsView.col4Width } MobileComponents.Heading { -- cgit v1.2.3-70-g09d2