aboutsummaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefDiveComputer.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-09-02 13:58:04 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-11 17:22:58 -0700
commitc72add5721244cebbf38ea4c7daf1a8ae3198e3e (patch)
tree537b76cceedc2f8ece101912b83e6dfca6a22e76 /core/settings/qPrefDiveComputer.h
parent740fcce338a00e7ec8d1c4701229d46b5463b974 (diff)
downloadsubsurface-c72add5721244cebbf38ea4c7daf1a8ae3198e3e.tar.gz
core/setting: change *_changed to *Changed for the sake of QML.
QML demands signals to be of the form <name>Changed Changing all of qPref REMARK: this commit is not compileable, since it only change qPref and not the rest of the system Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/settings/qPrefDiveComputer.h')
-rw-r--r--core/settings/qPrefDiveComputer.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/core/settings/qPrefDiveComputer.h b/core/settings/qPrefDiveComputer.h
index 99ff6575b..924c4f280 100644
--- a/core/settings/qPrefDiveComputer.h
+++ b/core/settings/qPrefDiveComputer.h
@@ -7,11 +7,11 @@
class qPrefDiveComputer : public QObject {
Q_OBJECT
- Q_PROPERTY(QString device READ device WRITE set_device NOTIFY device_changed);
- 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 device READ device WRITE set_device NOTIFY deviceChanged);
+ Q_PROPERTY(QString device_name READ device_name WRITE set_device_name NOTIFY device_nameChanged);
+ Q_PROPERTY(int download_mode READ download_mode WRITE set_download_mode NOTIFY download_modeChanged);
+ Q_PROPERTY(QString product READ product WRITE set_product NOTIFY productChanged);
+ Q_PROPERTY(QString vendor READ vendor WRITE set_vendor NOTIFY vendorChanged);
public:
qPrefDiveComputer(QObject *parent = NULL);
@@ -37,11 +37,11 @@ public slots:
static void set_vendor(const QString &vendor);
signals:
- 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 deviceChanged(const QString &device);
+ void device_nameChanged(const QString &device_name);
+ void download_modeChanged(int mode);
+ void productChanged(const QString &product);
+ void vendorChanged(const QString &vendor);
private:
// functions to load/sync variable with disk