mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Pereferences UI: add media tab
Remove the preference settings dealing with thumbnails (currently under General preferences and Profile preferences) and put them in a newly-created Media preference tab. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3e853e37a5
commit
2ac279d129
18 changed files with 398 additions and 226 deletions
27
core/settings/qPrefMedia.cpp
Normal file
27
core/settings/qPrefMedia.cpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
// 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);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue