From 9342dedb265ed314e1657e82aef407176f7d1e04 Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Wed, 27 Jan 2016 18:34:34 +0100 Subject: Move helper function to DiveObjectsHelper As per Tomaz recomendation the helper functions from 19588ce and e072596 are moved from qmlmanager to DiveObjectsHelper. [Dirk Hohndel: merged with the latest code] Signed-off-by: Joakim Bygdell Signed-off-by: Dirk Hohndel --- qt-mobile/qml/DiveDetailsView.qml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'qt-mobile/qml') diff --git a/qt-mobile/qml/DiveDetailsView.qml b/qt-mobile/qml/DiveDetailsView.qml index 7479ccb7a..d72f0e5a9 100644 --- a/qt-mobile/qml/DiveDetailsView.qml +++ b/qt-mobile/qml/DiveDetailsView.qml @@ -12,8 +12,6 @@ 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) - property string weight: manager.getWeights(dive.id) width: parent.width height: mainLayout.implicitHeight + MobileComponents.Units.iconSizes.large Rectangle { @@ -168,7 +166,7 @@ Item { } MobileComponents.Label { id: txtWeight - text: weight + text: dive.sumWeight Layout.fillWidth: true wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere } @@ -180,7 +178,7 @@ Item { } MobileComponents.Label { id: txtCylinder - text: cylinder + text: dive.getCylinder Layout.fillWidth: true wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere } -- cgit v1.2.3-70-g09d2