summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-05-30 18:29:36 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-06-19 13:11:10 -0700
commit6200909ba4ffba2d79770b7eacdb615eeb2c88c1 (patch)
treea5c63427daf5a3d73f179d5c63177edffe03c2e4 /desktop-widgets
parent46c69fccb79911b4ef1bc12606f39b072cbf19d3 (diff)
downloadsubsurface-6200909ba4ffba2d79770b7eacdb615eeb2c88c1.tar.gz
Cleanup: move tag functions into own translation unit
Make dive.h a bit slimmer. It's only a drop in the bucket - but at least when modifying tag functions not the *whole* application is rebuilt anymore. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/command_edit.cpp1
-rw-r--r--desktop-widgets/divelogexportdialog.cpp1
-rw-r--r--desktop-widgets/simplewidgets.cpp1
3 files changed, 3 insertions, 0 deletions
diff --git a/desktop-widgets/command_edit.cpp b/desktop-widgets/command_edit.cpp
index 2c9d56ba5..89b864f60 100644
--- a/desktop-widgets/command_edit.cpp
+++ b/desktop-widgets/command_edit.cpp
@@ -5,6 +5,7 @@
#include "core/divelist.h"
#include "core/qthelper.h" // for copy_qstring
#include "core/subsurface-string.h"
+#include "core/tag.h"
#include "desktop-widgets/mapwidget.h" // TODO: Replace desktop-dependency by signal
namespace Command {
diff --git a/desktop-widgets/divelogexportdialog.cpp b/desktop-widgets/divelogexportdialog.cpp
index 4fef543a0..1059d9bd0 100644
--- a/desktop-widgets/divelogexportdialog.cpp
+++ b/desktop-widgets/divelogexportdialog.cpp
@@ -17,6 +17,7 @@
#include "profile-widget/profilewidget2.h"
#include "core/save-profiledata.h"
#include "core/divesite.h"
+#include "core/tag.h"
// Retrieves the current unit settings defined in the Subsurface preferences.
#define GET_UNIT(name, field, f, t) \
diff --git a/desktop-widgets/simplewidgets.cpp b/desktop-widgets/simplewidgets.cpp
index 660a8a433..acb66c0c5 100644
--- a/desktop-widgets/simplewidgets.cpp
+++ b/desktop-widgets/simplewidgets.cpp
@@ -22,6 +22,7 @@
#include "profile-widget/profilewidget2.h"
#include "desktop-widgets/command.h"
#include "core/metadata.h"
+#include "core/tag.h"
double MinMaxAvgWidget::average() const
{