mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
preferences: create global settingsChanged signal
So far, the PreferencesDialog emitted a settingsChanged signal. This meant that models that listened to that signal had to conditionally compile out the code for mobile or the connection had to be made in MainWindow. Instead, introduce a global signal that does this and move the connects to the listeners to remove inter-dependencies. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
8bbd778c28
commit
2d7be7a0e3
16 changed files with 36 additions and 49 deletions
|
|
@ -83,6 +83,9 @@ signals:
|
|||
// The core structures were completely reset. Repopulate all models.
|
||||
void dataReset();
|
||||
|
||||
// The settings changed. Repopulate / rerender unit-dependent data, etc.
|
||||
void settingsChanged();
|
||||
|
||||
// Note that there are no signals for trips being added and created
|
||||
// because these events never happen without a dive being added, removed or moved.
|
||||
// The dives are always sorted according to the dives_less_than() function of the core.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue