mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
68b5fe9ccb
commit
128fc5f4b8
9 changed files with 181 additions and 181 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue