mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Preferences UI: final cleanup
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>
This commit is contained in:
parent
42a85dfa7e
commit
6212bb6721
18 changed files with 40 additions and 37 deletions
|
@ -10,7 +10,6 @@ qPrefDiveComputer *qPrefDiveComputer::instance()
|
|||
return self;
|
||||
}
|
||||
|
||||
|
||||
void qPrefDiveComputer::loadSync(bool doSync)
|
||||
{
|
||||
// last computer used
|
||||
|
@ -30,7 +29,6 @@ void qPrefDiveComputer::loadSync(bool doSync)
|
|||
DISK_DC(2)
|
||||
DISK_DC(3)
|
||||
DISK_DC(4)
|
||||
|
||||
}
|
||||
|
||||
// these are the 'active' settings
|
||||
|
|
|
@ -14,7 +14,6 @@ void qPrefEquipment::loadSync(bool doSync)
|
|||
{
|
||||
disk_default_cylinder(doSync);
|
||||
disk_display_unused_tanks(doSync);
|
||||
|
||||
}
|
||||
|
||||
HANDLE_PREFERENCE_TXT(Equipment, "default_cylinder", default_cylinder);
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#include "qPrefGeneral.h"
|
||||
#include "qPrefPrivate.h"
|
||||
|
||||
|
||||
static const QString group = QStringLiteral("GeneralSettings");
|
||||
|
||||
QString qPrefGeneral::st_diveshareExport_uid;
|
||||
|
@ -17,7 +16,6 @@ qPrefGeneral *qPrefGeneral::instance()
|
|||
return self;
|
||||
}
|
||||
|
||||
|
||||
void qPrefGeneral::loadSync(bool doSync)
|
||||
{
|
||||
disk_defaultsetpoint(doSync);
|
||||
|
|
|
@ -17,7 +17,6 @@ void qPrefGeocoding::loadSync(bool doSync)
|
|||
disk_third_taxonomy_category(doSync);
|
||||
}
|
||||
|
||||
|
||||
void qPrefGeocoding::set_first_taxonomy_category(taxonomy_category value)
|
||||
{
|
||||
if (value != prefs.geocoding.category[0]) {
|
||||
|
@ -34,7 +33,6 @@ void qPrefGeocoding::disk_first_taxonomy_category(bool doSync)
|
|||
prefs.geocoding.category[0] = (enum taxonomy_category)qPrefPrivate::propValue(keyFromGroupAndName(group, "cat0"), default_prefs.geocoding.category[0]).toInt();
|
||||
}
|
||||
|
||||
|
||||
void qPrefGeocoding::set_second_taxonomy_category(taxonomy_category value)
|
||||
{
|
||||
if (value != prefs.geocoding.category[1]) {
|
||||
|
@ -43,6 +41,7 @@ void qPrefGeocoding::set_second_taxonomy_category(taxonomy_category value)
|
|||
emit instance()->second_taxonomy_categoryChanged(value);
|
||||
}
|
||||
}
|
||||
|
||||
void qPrefGeocoding::disk_second_taxonomy_category(bool doSync)
|
||||
{
|
||||
if (doSync)
|
||||
|
@ -60,6 +59,7 @@ void qPrefGeocoding::set_third_taxonomy_category(taxonomy_category value)
|
|||
emit instance()->third_taxonomy_categoryChanged(value);
|
||||
}
|
||||
}
|
||||
|
||||
void qPrefGeocoding::disk_third_taxonomy_category(bool doSync)
|
||||
{
|
||||
if (doSync)
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
|
||||
#include <QObject>
|
||||
|
||||
|
||||
class qPrefGeocoding : public QObject {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(taxonomy_category first_taxonomy_category READ first_taxonomy_category WRITE set_first_taxonomy_category NOTIFY first_taxonomy_categoryChanged)
|
||||
|
|
|
@ -19,8 +19,6 @@ void qPrefLog::loadSync(bool doSync)
|
|||
disk_show_average_depth(doSync);
|
||||
}
|
||||
|
||||
HANDLE_PREFERENCE_TXT(Log, "default_filename", default_filename);
|
||||
|
||||
void qPrefLog::set_default_file_behavior(enum def_file_behavior value)
|
||||
{
|
||||
if (value != prefs.default_file_behavior ||
|
||||
|
@ -50,6 +48,7 @@ void qPrefLog::disk_default_file_behavior(bool doSync)
|
|||
}
|
||||
}
|
||||
|
||||
HANDLE_PREFERENCE_TXT(Log, "default_filename", default_filename);
|
||||
|
||||
HANDLE_PREFERENCE_BOOL(Log, "extraEnvironmentalDefault", extraEnvironmentalDefault);
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ void qPrefMedia::loadSync(bool 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);
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
|
||||
#include <QObject>
|
||||
|
||||
|
||||
class qPrefTechnicalDetails : public QObject {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(bool calcalltissues READ calcalltissues WRITE set_calcalltissues NOTIFY calcalltissuesChanged)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue