From 19588ce1399381129f86b4cc54e0c6522852e666 Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Mon, 25 Jan 2016 18:44:51 +0100 Subject: QML UI: Add helper function to get cylinder info Helper function that retrieves the cylinder description to be displayed in the DiveDetails. Only the first cylinder for a dive is retrieved. Signed-off-by: Joakim Bygdell Signed-off-by: Dirk Hohndel --- qt-mobile/qml/DiveDetailsView.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qt-mobile/qml/DiveDetailsView.qml') diff --git a/qt-mobile/qml/DiveDetailsView.qml b/qt-mobile/qml/DiveDetailsView.qml index 60ae8dfaf..6c333596c 100644 --- a/qt-mobile/qml/DiveDetailsView.qml +++ b/qt-mobile/qml/DiveDetailsView.qml @@ -12,6 +12,7 @@ import org.kde.plasma.mobilecomponents 0.2 as MobileComponents Item { id: detailsView property int labelWidth: MobileComponents.Units.gridUnit * 10 + property string cylinder: manager.getCylinder(dive.id) width: parent.width height: mainLayout.implicitHeight + MobileComponents.Units.iconSizes.large Rectangle { @@ -169,7 +170,7 @@ Item { } MobileComponents.Label { id: txtWeight - //text: dive.weights + text: weight Layout.fillWidth: true wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere Layout.alignment: Qt.AlignRight -- cgit v1.2.3-70-g09d2