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:
willemferguson 2019-12-12 10:28:04 +02:00 committed by Dirk Hohndel
parent 42a85dfa7e
commit 6212bb6721
18 changed files with 40 additions and 37 deletions

View file

@ -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

View file

@ -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);

View file

@ -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);

View file

@ -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)

View file

@ -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)

View file

@ -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);

View file

@ -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);

View file

@ -5,7 +5,6 @@
#include <QObject>
class qPrefTechnicalDetails : public QObject {
Q_OBJECT
Q_PROPERTY(bool calcalltissues READ calcalltissues WRITE set_calcalltissues NOTIFY calcalltissuesChanged)