diff options
Diffstat (limited to 'core/subsurface-qt/CylinderObjectHelper.h')
-rw-r--r-- | core/subsurface-qt/CylinderObjectHelper.h | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/core/subsurface-qt/CylinderObjectHelper.h b/core/subsurface-qt/CylinderObjectHelper.h index 8453bac01..f7df7f746 100644 --- a/core/subsurface-qt/CylinderObjectHelper.h +++ b/core/subsurface-qt/CylinderObjectHelper.h @@ -6,27 +6,24 @@ #include <QObject> #include <QString> -class CylinderObjectHelper : public QObject { - Q_OBJECT - Q_PROPERTY(QString description READ description CONSTANT) - Q_PROPERTY(QString size READ size CONSTANT) - Q_PROPERTY(QString workingPressure READ workingPressure CONSTANT) - Q_PROPERTY(QString startPressure READ startPressure CONSTANT) - Q_PROPERTY(QString endPressure READ endPressure CONSTANT) - Q_PROPERTY(QString gasMix READ gasMix CONSTANT) +class CylinderObjectHelper { + Q_GADGET + Q_PROPERTY(QString description MEMBER description CONSTANT) + Q_PROPERTY(QString size MEMBER size CONSTANT) + Q_PROPERTY(QString workingPressure MEMBER workingPressure CONSTANT) + Q_PROPERTY(QString startPressure MEMBER startPressure CONSTANT) + Q_PROPERTY(QString endPressure MEMBER endPressure CONSTANT) + Q_PROPERTY(QString gasMix MEMBER gasMix CONSTANT) public: CylinderObjectHelper(cylinder_t *cylinder = NULL); - ~CylinderObjectHelper(); - QString description() const; - QString size() const; - QString workingPressure() const; - QString startPressure() const; - QString endPressure() const; - QString gasMix() const; - -private: - cylinder_t *m_cyl; + QString description; + QString size; + QString workingPressure; + QString startPressure; + QString endPressure; + QString gasMix; }; - Q_DECLARE_METATYPE(CylinderObjectHelper *) +Q_DECLARE_METATYPE(CylinderObjectHelper) + #endif |