mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Move helper function to DiveObjectsHelper
As per Tomaz recomendation the helper functions from19588ceande072596are 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>
This commit is contained in:
parent
4abe73ff2a
commit
9342dedb26
5 changed files with 34 additions and 42 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue