mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
6212bb6721
This commit does some final cleaning up to the code, mostly deleting white space and comments. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
26 lines
840 B
C++
26 lines
840 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#include "qPrefMedia.h"
|
|
#include "qPrefPrivate.h"
|
|
|
|
static const QString group = QStringLiteral("Media");
|
|
|
|
qPrefMedia *qPrefMedia::instance()
|
|
{
|
|
static qPrefMedia *self = new qPrefMedia;
|
|
return self;
|
|
}
|
|
|
|
void qPrefMedia::loadSync(bool doSync)
|
|
{
|
|
disk_extract_video_thumbnails(doSync);
|
|
disk_extract_video_thumbnails_position(doSync);
|
|
disk_ffmpeg_executable(doSync);
|
|
disk_auto_recalculate_thumbnails(doSync);
|
|
disk_auto_recalculate_thumbnails(doSync);
|
|
}
|
|
|
|
HANDLE_PREFERENCE_BOOL(Media, "auto_recalculate_thumbnails", auto_recalculate_thumbnails);
|
|
HANDLE_PREFERENCE_BOOL(Media, "extract_video_thumbnails", extract_video_thumbnails);
|
|
HANDLE_PREFERENCE_INT(Media, "extract_video_thumbnails_position", extract_video_thumbnails_position);
|
|
HANDLE_PREFERENCE_TXT(Media, "ffmpeg_executable", ffmpeg_executable);
|
|
|