mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
mobile-widgets/qml/divesummary.qml: detect change in units
When either length or volume unit is changed, the text needs to be changed. Let signal lengthChanged and volumeChanged cause a recalcation and therefore new text. Signed-off-by: jan Iversen <jan@casacondor.com>
This commit is contained in:
parent
636af40897
commit
a65ec77263
1 changed files with 10 additions and 0 deletions
|
@ -15,6 +15,16 @@ Kirigami.ScrollablePage {
|
|||
if (visible)
|
||||
Backend.summaryCalculation(selectionPrimary.currentIndex, selectionSecondary.currentIndex)
|
||||
}
|
||||
Connections {
|
||||
target: Backend
|
||||
onLengthChanged: {
|
||||
Backend.summaryCalculation(selectionPrimary.currentIndex, selectionSecondary.currentIndex)
|
||||
}
|
||||
onVolumeChanged: {
|
||||
Backend.summaryCalculation(selectionPrimary.currentIndex, selectionSecondary.currentIndex)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
GridLayout {
|
||||
columns: 3
|
||||
|
|
Loading…
Reference in a new issue