summaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefDiveComputer.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-25 10:49:48 -0700
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-07-26 16:32:51 +0300
commit128fc5f4b81f036eeb76cda99704095673efbe8e (patch)
tree26f3b7daef8a4c8881f9129654e6136ea35bae5b /core/settings/qPrefDiveComputer.h
parent68b5fe9ccbbc7255a00d657cf29e6dc2515b8c3c (diff)
downloadsubsurface-128fc5f4b81f036eeb76cda99704095673efbe8e.tar.gz
Whitespace cleanup core/settings
We can argue about any of the changes here, but they are the result of our whitespace.pl script - so if any of this is offensive to you, part of the resolution will be fixing the script... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/settings/qPrefDiveComputer.h')
-rw-r--r--core/settings/qPrefDiveComputer.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/core/settings/qPrefDiveComputer.h b/core/settings/qPrefDiveComputer.h
index c270c8155..30cc5e1e0 100644
--- a/core/settings/qPrefDiveComputer.h
+++ b/core/settings/qPrefDiveComputer.h
@@ -11,7 +11,7 @@ class qPrefDiveComputer : public QObject {
Q_PROPERTY(QString device_name READ device_name WRITE set_device_name NOTIFY device_name_changed);
Q_PROPERTY(int download_mode READ download_mode WRITE set_download_mode NOTIFY download_mode_changed);
Q_PROPERTY(QString product READ product WRITE set_product NOTIFY product_changed);
- Q_PROPERTY(QString vendor READ vendor WRITE set_vendor NOTIFY vendor_changed);
+ Q_PROPERTY(QString vendor READ vendor WRITE set_vendor NOTIFY vendor_changed);
public:
qPrefDiveComputer(QObject *parent = NULL);
@@ -19,29 +19,29 @@ public:
// Load/Sync local settings (disk) and struct preference
void loadSync(bool doSync);
- void inline load() {loadSync(false); }
- void inline sync() {loadSync(true); }
+ void inline load() { loadSync(false); }
+ void inline sync() { loadSync(true); }
public:
- static inline QString device() {return prefs.dive_computer.device; };
- static inline QString device_name() {return prefs.dive_computer.device_name; };
- static inline int download_mode() {return prefs.dive_computer.download_mode; };
- static inline QString product() {return prefs.dive_computer.product; };
- static inline QString vendor() {return prefs.dive_computer.vendor; };
+ static inline QString device() { return prefs.dive_computer.device; };
+ static inline QString device_name() { return prefs.dive_computer.device_name; };
+ static inline int download_mode() { return prefs.dive_computer.download_mode; };
+ static inline QString product() { return prefs.dive_computer.product; };
+ static inline QString vendor() { return prefs.dive_computer.vendor; };
public slots:
- void set_device(const QString& device);
- void set_device_name(const QString& device_name);
+ void set_device(const QString &device);
+ void set_device_name(const QString &device_name);
void set_download_mode(int mode);
- void set_product(const QString& product);
- void set_vendor(const QString& vendor);
+ void set_product(const QString &product);
+ void set_vendor(const QString &vendor);
signals:
- void device_changed(const QString& device);
- void device_name_changed(const QString& device_name);
+ void device_changed(const QString &device);
+ void device_name_changed(const QString &device_name);
void download_mode_changed(int mode);
- void product_changed(const QString& product);
- void vendor_changed(const QString& vendor);
+ void product_changed(const QString &product);
+ void vendor_changed(const QString &vendor);
private:
// functions to load/sync variable with disk