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
30
desktop-widgets/preferences/preferences_media.h
Normal file
30
desktop-widgets/preferences/preferences_media.h
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#ifndef PREFERENCES_MEDIA_H
|
||||
#define PREFERENCES_MEDIA_H
|
||||
|
||||
#include <QMap>
|
||||
#include "abstractpreferenceswidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class PreferencesMedia;
|
||||
}
|
||||
|
||||
class PreferencesMedia : public AbstractPreferencesWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
PreferencesMedia();
|
||||
~PreferencesMedia();
|
||||
void refreshSettings() override;
|
||||
void syncSettings() override;
|
||||
public slots:
|
||||
void on_ffmpegFile_clicked();
|
||||
void on_ffmpegExecutable_editingFinished();
|
||||
void on_extractVideoThumbnails_toggled(bool toggled);
|
||||
private:
|
||||
Ui::PreferencesMedia *ui;
|
||||
void checkFfmpegExecutable();
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue