mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 19:41:30 +00:00
ccdd92aeb7
This is a messy commit, because the "qPref" system relies heavily on QString, which means lots of conversions between the two worlds. Ultimately, I plan to base the preferences system on std::string and only convert to QString when pushing through Qt's property system or when writing into Qt's settings. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
25 lines
839 B
C++
25 lines
839 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);
|