summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/SettingsObjectWrapper.h
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-11-21 15:52:01 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-24 07:56:10 -0800
commitbd8830672269297f7030670e10f2191ac824093f (patch)
tree36bea72af67273a7516a8d473616995b5bef96b7 /core/subsurface-qt/SettingsObjectWrapper.h
parent178dcbc0c693fc1d7b9bf3988ec2f3ac5ff3f2f3 (diff)
downloadsubsurface-bd8830672269297f7030670e10f2191ac824093f.tar.gz
Change prefs.show_units_table to bool
Bool is the correct choice for this option. int was used before because it was not clear to me how and if I can use bool in this C file. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'core/subsurface-qt/SettingsObjectWrapper.h')
-rw-r--r--core/subsurface-qt/SettingsObjectWrapper.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.h b/core/subsurface-qt/SettingsObjectWrapper.h
index e8fe6a103..508f6a6ad 100644
--- a/core/subsurface-qt/SettingsObjectWrapper.h
+++ b/core/subsurface-qt/SettingsObjectWrapper.h
@@ -505,7 +505,7 @@ class UnitsSettings : public QObject {
Q_PROPERTY(bool coordinates_traditional READ coordinatesTraditional WRITE setCoordinatesTraditional NOTIFY coordinatesTraditionalChanged)
Q_PROPERTY(int vertical_speed_time READ verticalSpeedTime WRITE setVerticalSpeedTime NOTIFY verticalSpeedTimeChanged)
Q_PROPERTY(int duration_units READ durationUnits WRITE setDurationUnits NOTIFY durationUnitChanged)
- Q_PROPERTY(int show_units_table READ showUnitsTable WRITE setShowUnitsTable NOTIFY showUnitsTableChanged)
+ Q_PROPERTY(bool show_units_table READ showUnitsTable WRITE setShowUnitsTable NOTIFY showUnitsTableChanged)
public:
UnitsSettings(QObject *parent = 0);
@@ -516,7 +516,7 @@ public:
int weight() const;
int verticalSpeedTime() const;
int durationUnits() const;
- int showUnitsTable() const;
+ bool showUnitsTable() const;
QString unitSystem() const;
bool coordinatesTraditional() const;
@@ -528,7 +528,7 @@ public slots:
void setWeight(int value);
void setVerticalSpeedTime(int value);
void setDurationUnits(int value);
- void setShowUnitsTable(int value);
+ void setShowUnitsTable(bool value);
void setUnitSystem(const QString& value);
void setCoordinatesTraditional(bool value);
@@ -542,7 +542,7 @@ signals:
void unitSystemChanged(const QString& value);
void coordinatesTraditionalChanged(bool value);
void durationUnitChanged(int value);
- void showUnitsTableChanged(int value);
+ void showUnitsTableChanged(bool value);
private:
const QString group = QStringLiteral("Units");
};