summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-07-15 23:16:29 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-07-18 05:42:55 -0700
commit16214e753adda16867184df8a57301a13f2e041c (patch)
tree8e08e9b7016ad58ad7c2936e5cf903c63bd554dd
parentb720f3697874338c3bf77a65ed3b319897841e26 (diff)
downloadsubsurface-16214e753adda16867184df8a57301a13f2e041c.tar.gz
Cleanup: remove includes from qt-models/models.h
qt-models/models.h included dive.h and divelist.h. Remove these unnecessary includes, to reduce interdependencies. A drop in the bucket, for sure. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--desktop-widgets/preferences/preferences_graph.cpp1
-rw-r--r--qt-models/models.h3
2 files changed, 1 insertions, 3 deletions
diff --git a/desktop-widgets/preferences/preferences_graph.cpp b/desktop-widgets/preferences/preferences_graph.cpp
index f8262bbb1..2b3c35135 100644
--- a/desktop-widgets/preferences/preferences_graph.cpp
+++ b/desktop-widgets/preferences/preferences_graph.cpp
@@ -7,6 +7,7 @@
#include <QMessageBox>
#include "qt-models/models.h"
+#include "core/dive.h" // TODO: replace by deco.h
PreferencesGraph::PreferencesGraph() : AbstractPreferencesWidget(tr("Profile"), QIcon(":graph-icon"), 5)
{
diff --git a/qt-models/models.h b/qt-models/models.h
index d11090cd2..012b1f8b6 100644
--- a/qt-models/models.h
+++ b/qt-models/models.h
@@ -16,9 +16,6 @@
#include "core/metrics.h"
-#include "core/dive.h"
-#include "core/divelist.h"
-#include "core/divecomputer.h"
#include "cleanertablemodel.h"
#include "treemodel.h"