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>
This commit is contained in:
Berthold Stoeger 2020-04-10 09:42:14 +02:00 committed by Dirk Hohndel
parent 34657f62ae
commit 3f3869ff65
19 changed files with 58 additions and 29 deletions

View file

@ -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>

View file

@ -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