diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-11-24 12:50:52 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-12 15:52:40 -0800 |
commit | 2d7be7a0e366b562fdff914e92219ab1852cd3c8 (patch) | |
tree | 7f4501cfe26b31f3a98f3b66cfaf925107a588d9 /subsurface-desktop-main.cpp | |
parent | 8bbd778c28f52277dbee4a8d7bcb577c61a611f6 (diff) | |
download | subsurface-2d7be7a0e366b562fdff914e92219ab1852cd3c8.tar.gz |
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>
Diffstat (limited to 'subsurface-desktop-main.cpp')
-rw-r--r-- | subsurface-desktop-main.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/subsurface-desktop-main.cpp b/subsurface-desktop-main.cpp index 25891e3c0..6f662ecd7 100644 --- a/subsurface-desktop-main.cpp +++ b/subsurface-desktop-main.cpp @@ -6,7 +6,6 @@ #include <string.h> #include <time.h> -#include "core/color.h" #include "core/downloadfromdcthread.h" // for fill_computer_list #include "core/errorhelper.h" #include "core/parse.h" @@ -15,11 +14,7 @@ #include "core/subsurfacestartup.h" #include "core/settings/qPref.h" #include "core/tag.h" -#include "desktop-widgets/diveplanner.h" #include "desktop-widgets/mainwindow.h" -#include "desktop-widgets/preferences/preferencesdialog.h" -#include "desktop-widgets/tab-widgets/maintab.h" -#include "profile-widget/profilewidget2.h" #include <QApplication> #include <QLoggingCategory> |