From 6200909ba4ffba2d79770b7eacdb615eeb2c88c1 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Date: Thu, 30 May 2019 18:29:36 +0200 Subject: 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> --- desktop-widgets/command_edit.cpp | 1 + desktop-widgets/divelogexportdialog.cpp | 1 + desktop-widgets/simplewidgets.cpp | 1 + 3 files changed, 3 insertions(+) (limited to 'desktop-widgets') 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 { -- cgit v1.2.3-70-g09d2