From e0725966b1740f35c986466210bb384f1ece1b7f Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Mon, 25 Jan 2016 18:44:52 +0100 Subject: QML UI: Add helper function to get weights Helper function that retrieved the total weight for a dive to be displayed on the DiveDetials page. Signed-off-by: Joakim Bygdell Signed-off-by: Dirk Hohndel --- qt-mobile/qml/DiveDetailsView.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-mobile/qml/DiveDetailsView.qml') diff --git a/qt-mobile/qml/DiveDetailsView.qml b/qt-mobile/qml/DiveDetailsView.qml index 6c333596c..df1d255a2 100644 --- a/qt-mobile/qml/DiveDetailsView.qml +++ b/qt-mobile/qml/DiveDetailsView.qml @@ -13,6 +13,7 @@ Item { id: detailsView property int labelWidth: MobileComponents.Units.gridUnit * 10 property string cylinder: manager.getCylinder(dive.id) + property string weight: manager.getWeights(dive.id) width: parent.width height: mainLayout.implicitHeight + MobileComponents.Units.iconSizes.large Rectangle { @@ -171,7 +172,6 @@ Item { MobileComponents.Label { id: txtWeight text: weight - Layout.fillWidth: true wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere Layout.alignment: Qt.AlignRight } -- cgit v1.2.3-70-g09d2