diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-10 09:42:14 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-04-10 10:53:03 -0700 |
commit | 3f3869ff650229e99262ee07b14e1d14ca973d10 (patch) | |
tree | 7508ff4e13d831855551d6737d0373e67e126470 /qt-models | |
parent | 34657f62ae5209b2f1c44efde053aba43e783e5e (diff) | |
download | subsurface-3f3869ff650229e99262ee07b14e1d14ca973d10.tar.gz |
media: move picture function from dive.c to picture.c
Currently, move only those functions that do not access dive
structures.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/divepicturemodel.cpp | 4 | ||||
-rw-r--r-- | qt-models/divetripmodel.cpp | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/qt-models/divepicturemodel.cpp b/qt-models/divepicturemodel.cpp index 8156693ef..1eb0767f6 100644 --- a/qt-models/divepicturemodel.cpp +++ b/qt-models/divepicturemodel.cpp @@ -1,9 +1,9 @@ // SPDX-License-Identifier: GPL-2.0 #include "qt-models/divepicturemodel.h" -#include "core/dive.h" #include "core/metrics.h" -#include "core/divelist.h" +#include "core/divelist.h" // for mark_divelist_changed() #include "core/imagedownloader.h" +#include "core/picture.h" #include "core/qthelper.h" #include <QFileInfo> diff --git a/qt-models/divetripmodel.cpp b/qt-models/divetripmodel.cpp index 2e5359b89..0f381410a 100644 --- a/qt-models/divetripmodel.cpp +++ b/qt-models/divetripmodel.cpp @@ -10,6 +10,7 @@ #include "core/trip.h" #include "core/qthelper.h" #include "core/divesite.h" +#include "core/picture.h" #include "core/subsurface-string.h" #include "core/tag.h" #include "qt-models/divelocationmodel.h" // For the dive-site field ids |