mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: Enable cylinder edit
This adds the option to select a cylinder when adding or editing a dive. Due to limited screen size we restrict the editing to the first cylinder only. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7b3665827a
commit
674d8331f5
6 changed files with 74 additions and 16 deletions
|
|
@ -33,7 +33,7 @@ class DiveObjectHelper : public QObject {
|
|||
Q_PROPERTY(QStringList weights READ weights CONSTANT)
|
||||
Q_PROPERTY(bool singleWeight READ singleWeight CONSTANT)
|
||||
Q_PROPERTY(QString suit READ suit CONSTANT)
|
||||
Q_PROPERTY(QString cylinderList READ cylinderList CONSTANT)
|
||||
Q_PROPERTY(QStringList cylinderList READ cylinderList CONSTANT)
|
||||
Q_PROPERTY(QStringList cylinders READ cylinders CONSTANT)
|
||||
Q_PROPERTY(QList<CylinderObjectHelper*> cylinderObjects READ cylinderObjects CONSTANT)
|
||||
Q_PROPERTY(QString trip READ trip CONSTANT)
|
||||
|
|
@ -76,7 +76,7 @@ public:
|
|||
QString weight(int idx) const;
|
||||
bool singleWeight() const;
|
||||
QString suit() const;
|
||||
QString cylinderList() const;
|
||||
QStringList cylinderList() const;
|
||||
QStringList cylinders() const;
|
||||
QString cylinder(int idx) const;
|
||||
QList<CylinderObjectHelper*> cylinderObjects() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue