diff options
author | 2019-05-31 16:09:14 +0200 | |
---|---|---|
committer | 2019-06-19 13:11:10 -0700 | |
commit | 7f4d9db962e73aa5d5089c43c99b78b3690ffb87 (patch) | |
tree | 87e143b80ed394fc321765885a75cac229bf9f18 /qt-models | |
parent | f1c2cd375e295730d92e23093e44777baf838f1d (diff) | |
download | subsurface-7f4d9db962e73aa5d5089c43c99b78b3690ffb87.tar.gz |
Cleanup: move trip-related functions into own translation unit
These functions were spread out over dive.c and divelist.c.
Move them into their own file to make all this a bit less monolithic.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/cylindermodel.cpp | 1 | ||||
-rw-r--r-- | qt-models/divelistmodel.cpp | 1 | ||||
-rw-r--r-- | qt-models/divetripmodel.cpp | 2 | ||||
-rw-r--r-- | qt-models/filtermodels.cpp | 1 | ||||
-rw-r--r-- | qt-models/weightmodel.cpp | 1 |
5 files changed, 5 insertions, 1 deletions
diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp index 83c520634..52adda753 100644 --- a/qt-models/cylindermodel.cpp +++ b/qt-models/cylindermodel.cpp @@ -7,6 +7,7 @@ #include "qt-models/diveplannermodel.h" #include "core/gettextfromc.h" #include "core/subsurface-qt/DiveListNotifier.h" +#include "core/trip.h" // TODO: Needed because cylindersReset uses a trip parameter -> remove that! CylindersModel::CylindersModel(QObject *parent) : CleanerTableModel(parent), diff --git a/qt-models/divelistmodel.cpp b/qt-models/divelistmodel.cpp index b13c1fcc3..f85e5e521 100644 --- a/qt-models/divelistmodel.cpp +++ b/qt-models/divelistmodel.cpp @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include "qt-models/divelistmodel.h" #include "core/qthelper.h" +#include "core/trip.h" #include "core/settings/qPrefGeneral.h" #include <QDateTime> diff --git a/qt-models/divetripmodel.cpp b/qt-models/divetripmodel.cpp index 7795b3563..ca1e4f73f 100644 --- a/qt-models/divetripmodel.cpp +++ b/qt-models/divetripmodel.cpp @@ -3,7 +3,7 @@ #include "qt-models/filtermodels.h" #include "core/gettextfromc.h" #include "core/metrics.h" -#include "core/divelist.h" +#include "core/trip.h" #include "core/qthelper.h" #include "core/subsurface-string.h" #include "core/tag.h" diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp index 5b1169de8..8e7239e35 100644 --- a/qt-models/filtermodels.cpp +++ b/qt-models/filtermodels.cpp @@ -4,6 +4,7 @@ #include "core/display.h" #include "core/qthelper.h" #include "core/divesite.h" +#include "core/trip.h" #include "core/subsurface-string.h" #include "core/subsurface-qt/DiveListNotifier.h" #include "qt-models/divetripmodel.h" diff --git a/qt-models/weightmodel.cpp b/qt-models/weightmodel.cpp index 6f913c63b..8f3267359 100644 --- a/qt-models/weightmodel.cpp +++ b/qt-models/weightmodel.cpp @@ -6,6 +6,7 @@ #include "core/qthelper.h" #include "core/subsurface-qt/DiveListNotifier.h" #include "qt-models/weightsysteminfomodel.h" +#include "core/trip.h" // TODO: Needed because weightsystemsReset uses a trip parameter -> remove that! WeightModel::WeightModel(QObject *parent) : CleanerTableModel(parent), changed(false), |