mobile/UI: add signal to redraw profile

This allows us to force a redraw of the dive profile when settings change
that require a refresh of the profile.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2021-01-10 15:50:08 -08:00
parent 7fc2071059
commit 669cbdaac5
2 changed files with 12 additions and 0 deletions

View file

@ -16,6 +16,14 @@ Item {
width: diveDetailsPage.width - diveDetailsPage.leftPadding - diveDetailsPage.rightPadding
height: divePlate.implicitHeight + bottomLayout.implicitHeight + Kirigami.Units.iconSizes.large
Connections {
target: rootItem
onSettingsChanged: {
qmlProfile.update()
}
}
Rectangle {
z: 99
color: subsurfaceTheme.textColor