mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
7fc2071059
commit
669cbdaac5
2 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -46,6 +46,10 @@ Kirigami.ApplicationWindow {
|
|||
property string filterPattern: ""
|
||||
property int colWidth: undefined
|
||||
|
||||
// signal that the profile (and possibly other code) listens to so they
|
||||
// can redraw if settings are changed
|
||||
signal settingsChanged()
|
||||
|
||||
onNotificationTextChanged: {
|
||||
// once the app is fully initialized and the UI is running, we use passive
|
||||
// notifications to show the notification text, but during initialization
|
||||
|
|
Loading…
Add table
Reference in a new issue