From 2d7be7a0e366b562fdff914e92219ab1852cd3c8 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 24 Nov 2020 12:50:52 +0100 Subject: 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 --- subsurface-desktop-main.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'subsurface-desktop-main.cpp') 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 #include -#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 #include -- cgit v1.2.3-70-g09d2