diff options
Diffstat (limited to 'subsurface-core/subsurface-qt/SettingsObjectWrapper.h')
-rw-r--r-- | subsurface-core/subsurface-qt/SettingsObjectWrapper.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/subsurface-core/subsurface-qt/SettingsObjectWrapper.h b/subsurface-core/subsurface-qt/SettingsObjectWrapper.h index 2b28d21bd..6a8aa73b8 100644 --- a/subsurface-core/subsurface-qt/SettingsObjectWrapper.h +++ b/subsurface-core/subsurface-qt/SettingsObjectWrapper.h @@ -413,43 +413,43 @@ private: class UnitsSettings : public QObject { Q_OBJECT - Q_PROPERTY(units::length length READ length WRITE setLength NOTIFY lengthChanged) - Q_PROPERTY(units::pressure pressure READ pressure WRITE setPressure NOTIFY pressureChanged) - Q_PROPERTY(units::volume volume READ volume WRITE setVolume NOTIFY volumeChanged) - Q_PROPERTY(units::temperature temperature READ temperature WRITE setTemperature NOTIFY temperatureChanged) - Q_PROPERTY(units::weight weight READ weight WRITE setWeight NOTIFY weightChanged) + Q_PROPERTY(int length READ length WRITE setLength NOTIFY lengthChanged) + Q_PROPERTY(int pressure READ pressure WRITE setPressure NOTIFY pressureChanged) + Q_PROPERTY(int volume READ volume WRITE setVolume NOTIFY volumeChanged) + Q_PROPERTY(int temperature READ temperature WRITE setTemperature NOTIFY temperatureChanged) + Q_PROPERTY(int weight READ weight WRITE setWeight NOTIFY weightChanged) Q_PROPERTY(QString unit_system READ unitSystem WRITE setUnitSystem NOTIFY unitSystemChanged) Q_PROPERTY(bool coordinates_traditional READ coordinatesTraditional WRITE setCoordinatesTraditional NOTIFY coordinatesTraditionalChanged) - Q_PROPERTY(units::vertical_speed_time vertical_speed_time READ verticalSpeedTime WRITE setVerticalSpeedTime NOTIFY verticalSpeedTimeChanged) + Q_PROPERTY(int vertical_speed_time READ verticalSpeedTime WRITE setVerticalSpeedTime NOTIFY verticalSpeedTimeChanged) public: UnitsSettings(QObject *parent = 0); - units::length length() const; - units::pressure pressure() const; - units::volume volume() const; - units::temperature temperature() const; - units::weight weight() const; - units::vertical_speed_time verticalSpeedTime() const; + int length() const; + int pressure() const; + int volume() const; + int temperature() const; + int weight() const; + int verticalSpeedTime() const; QString unitSystem() const; bool coordinatesTraditional() const; public slots: - void setLength(units::length value); - void setPressure(units::pressure value); - void setVolume(units::volume value); - void setTemperature(units::temperature value); - void setWeight(units::weight value); - void setVerticalSpeedTime(units::vertical_speed_time value); + void setLength(int value); + void setPressure(int value); + void setVolume(int value); + void setTemperature(int value); + void setWeight(int value); + void setVerticalSpeedTime(int value); void setUnitSystem(const QString& value); void setCoordinatesTraditional(bool value); signals: - void lengthChanged(units::length value); - void pressureChanged(units::pressure value); - void volumeChanged(units::volume value); - void temperatureChanged(units::temperature value); - void weightChanged(units::weight value); - void verticalSpeedTimeChanged(units::vertical_speed_time value); + void lengthChanged(int value); + void pressureChanged(int value); + void volumeChanged(int value); + void temperatureChanged(int value); + void weightChanged(int value); + void verticalSpeedTimeChanged(int value); void unitSystemChanged(const QString& value); void coordinatesTraditionalChanged(bool value); private: |