mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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)
|
if (visible)
|
||||||
Backend.summaryCalculation(selectionPrimary.currentIndex, selectionSecondary.currentIndex)
|
Backend.summaryCalculation(selectionPrimary.currentIndex, selectionSecondary.currentIndex)
|
||||||
}
|
}
|
||||||
|
Connections {
|
||||||
|
target: Backend
|
||||||
|
onLengthChanged: {
|
||||||
|
Backend.summaryCalculation(selectionPrimary.currentIndex, selectionSecondary.currentIndex)
|
||||||
|
}
|
||||||
|
onVolumeChanged: {
|
||||||
|
Backend.summaryCalculation(selectionPrimary.currentIndex, selectionSecondary.currentIndex)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
columns: 3
|
columns: 3
|
||||||
|
|
Loading…
Add table
Reference in a new issue