mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
f1c2cd375e
commit
7f4d9db962
45 changed files with 481 additions and 426 deletions
|
@ -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),
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue