summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-07-15 23:44:39 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-07-18 05:42:55 -0700
commit8f119dcf72db445530b39e0722c3afad7c130efb (patch)
treef0e410011a4f476b4115929dd7062646a46ccc0b /desktop-widgets
parent0136d76cf4fd5c62f4224d2d721fce2b78097104 (diff)
downloadsubsurface-8f119dcf72db445530b39e0722c3afad7c130efb.tar.gz
Cleanup: remove includes from qthelper.h
To reduce interdependencies, remove the dive.h and divelist.h includes in qthelper.h Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/downloadfromdivecomputer.cpp1
-rw-r--r--desktop-widgets/simplewidgets.cpp1
-rw-r--r--desktop-widgets/tab-widgets/TabDiveInformation.cpp1
3 files changed, 3 insertions, 0 deletions
diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp
index 7c6101845..769d4a913 100644
--- a/desktop-widgets/downloadfromdivecomputer.cpp
+++ b/desktop-widgets/downloadfromdivecomputer.cpp
@@ -3,6 +3,7 @@
#include "desktop-widgets/command.h"
#include "core/display.h"
#include "core/qthelper.h"
+#include "core/divelist.h"
#include "core/settings/qPrefDiveComputer.h"
#include "core/subsurface-string.h"
#include "core/uemis.h"
diff --git a/desktop-widgets/simplewidgets.cpp b/desktop-widgets/simplewidgets.cpp
index acb66c0c5..f6356f2d4 100644
--- a/desktop-widgets/simplewidgets.cpp
+++ b/desktop-widgets/simplewidgets.cpp
@@ -23,6 +23,7 @@
#include "desktop-widgets/command.h"
#include "core/metadata.h"
#include "core/tag.h"
+#include "core/divelist.h" // for mark_divelist_changed
double MinMaxAvgWidget::average() const
{
diff --git a/desktop-widgets/tab-widgets/TabDiveInformation.cpp b/desktop-widgets/tab-widgets/TabDiveInformation.cpp
index 9af640a8e..492ba97a7 100644
--- a/desktop-widgets/tab-widgets/TabDiveInformation.cpp
+++ b/desktop-widgets/tab-widgets/TabDiveInformation.cpp
@@ -8,6 +8,7 @@
#include "core/qthelper.h"
#include "core/statistics.h"
#include "core/display.h"
+#include "core/divelist.h"
#define COMBO_CHANGED 0
#define TEXT_EDITED 1