diff options
author | willemferguson <willemferguson@zoology.up.ac.za> | 2019-12-08 11:30:16 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-25 02:57:42 +0900 |
commit | 2ac279d12953ad840ade1c08d0eff5c2f4adb0b9 (patch) | |
tree | 9f2d70f50cb910803e260fa9d3bdad2687d820ad /core/settings/qPrefGeneral.h | |
parent | 3e853e37a5b0b9509fb92b1ddb3031f117578fb9 (diff) | |
download | subsurface-2ac279d12953ad840ade1c08d0eff5c2f4adb0b9.tar.gz |
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>
Diffstat (limited to 'core/settings/qPrefGeneral.h')
-rw-r--r-- | core/settings/qPrefGeneral.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/core/settings/qPrefGeneral.h b/core/settings/qPrefGeneral.h index c55063bd2..bb91d6501 100644 --- a/core/settings/qPrefGeneral.h +++ b/core/settings/qPrefGeneral.h @@ -7,13 +7,9 @@ class qPrefGeneral : public QObject { Q_OBJECT - Q_PROPERTY(bool auto_recalculate_thumbnails READ auto_recalculate_thumbnails WRITE set_auto_recalculate_thumbnails NOTIFY auto_recalculate_thumbnailsChanged) Q_PROPERTY(QString default_filename READ default_filename WRITE set_default_filename NOTIFY default_filenameChanged) Q_PROPERTY(enum def_file_behavior default_file_behavior READ default_file_behavior WRITE set_default_file_behavior NOTIFY default_file_behaviorChanged) Q_PROPERTY(int defaultsetpoint READ defaultsetpoint WRITE set_defaultsetpoint NOTIFY defaultsetpointChanged) - Q_PROPERTY(bool extract_video_thumbnails READ extract_video_thumbnails WRITE set_extract_video_thumbnails NOTIFY extract_video_thumbnailsChanged) - Q_PROPERTY(int extract_video_thumbnails_position READ extract_video_thumbnails_position WRITE set_extract_video_thumbnails_position NOTIFY extract_video_thumbnails_positionChanged) - Q_PROPERTY(QString ffmpeg_executable READ ffmpeg_executable WRITE set_ffmpeg_executable NOTIFY ffmpeg_executableChanged) Q_PROPERTY(int o2consumption READ o2consumption WRITE set_o2consumption NOTIFY o2consumptionChanged) Q_PROPERTY(int pscr_ratio READ pscr_ratio WRITE set_pscr_ratio NOTIFY pscr_ratioChanged) Q_PROPERTY(bool use_default_file READ use_default_file WRITE set_use_default_file NOTIFY use_default_fileChanged) @@ -33,13 +29,9 @@ public: static void sync() { return loadSync(true); } public: - static bool auto_recalculate_thumbnails() { return prefs.auto_recalculate_thumbnails; } static QString default_filename() { return prefs.default_filename; } static enum def_file_behavior default_file_behavior() { return prefs.default_file_behavior; } static int defaultsetpoint() { return prefs.defaultsetpoint; } - static bool extract_video_thumbnails() { return prefs.extract_video_thumbnails; } - static int extract_video_thumbnails_position() { return prefs.extract_video_thumbnails_position; } - static QString ffmpeg_executable() { return prefs.ffmpeg_executable; } static int o2consumption() { return prefs.o2consumption; } static int pscr_ratio() { return prefs.pscr_ratio; } static bool use_default_file() { return prefs.use_default_file; } @@ -50,13 +42,9 @@ public: static bool extraEnvironmentalDefault() { return prefs.extraEnvironmentalDefault; } public slots: - static void set_auto_recalculate_thumbnails(bool value); static void set_default_filename(const QString& value); static void set_default_file_behavior(enum def_file_behavior value); static void set_defaultsetpoint(int value); - static void set_extract_video_thumbnails(bool value); - static void set_extract_video_thumbnails_position(int value); - static void set_ffmpeg_executable(const QString& value); static void set_o2consumption(int value); static void set_pscr_ratio(int value); static void set_use_default_file(bool value); @@ -67,13 +55,9 @@ public slots: static void set_extraEnvironmentalDefault(bool value); signals: - void auto_recalculate_thumbnailsChanged(bool value); void default_filenameChanged(const QString& value); void default_file_behaviorChanged(enum def_file_behavior value); void defaultsetpointChanged(int value); - void extract_video_thumbnailsChanged(bool value); - void extract_video_thumbnails_positionChanged(int value); - void ffmpeg_executableChanged(const QString& value); void o2consumptionChanged(int value); void pscr_ratioChanged(int value); void use_default_fileChanged(bool value); @@ -87,13 +71,9 @@ signals: private: qPrefGeneral() {} - static void disk_auto_recalculate_thumbnails(bool doSync); static void disk_default_filename(bool doSync); static void disk_default_file_behavior(bool doSync); static void disk_defaultsetpoint(bool doSync); - static void disk_extract_video_thumbnails(bool doSync); - static void disk_extract_video_thumbnails_position(bool doSync); - static void disk_ffmpeg_executable(bool doSync); static void disk_o2consumption(bool doSync); static void disk_pscr_ratio(bool doSync); static void disk_use_default_file(bool doSync); |