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 <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-03-29 20:17:58 -05:00
parent a065b97472
commit a11e719f1a

View file

@ -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 {