aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DiveDetailsView.qml
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2016-01-27 18:34:34 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-27 11:18:44 -0800
commit9342dedb265ed314e1657e82aef407176f7d1e04 (patch)
tree5597c80fe1138e7341c415337599903a644be646 /qt-mobile/qml/DiveDetailsView.qml
parent4abe73ff2af49431d131f0d42fd10aa6f61b0125 (diff)
downloadsubsurface-9342dedb265ed314e1657e82aef407176f7d1e04.tar.gz
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 <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveDetailsView.qml')
-rw-r--r--qt-mobile/qml/DiveDetailsView.qml6
1 files changed, 2 insertions, 4 deletions
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
}