diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-11-26 18:07:08 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-26 12:28:16 -0800 |
commit | c94101dd4fc6a92e0039aa4649f17db5f652c766 (patch) | |
tree | 7e125d0a67c1a7860b560a74570808be3f699d94 /qt-ui/diveplanner.h | |
parent | 97fd22b1be8370ae2bebfaa8054fd7636ad829f6 (diff) | |
download | subsurface-c94101dd4fc6a92e0039aa4649f17db5f652c766.tar.gz |
Changing the preferences should update the Add Dive interface
Since all internal units are in mm we needed to only update what's shown
on the interface.
Fixes #299
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index c7ebe4a3a..81e36b02c 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -62,11 +62,9 @@ public slots: void deleteTemporaryPlan(); void loadFromDive(dive* d); void restoreBackupDive(); - signals: void planCreated(); void planCanceled(); - private: explicit DivePlannerPointsModel(QObject* parent = 0); bool addGas(int o2, int he); @@ -140,6 +138,8 @@ public: qreal posAtValue(qreal value); void setColor(const QColor& color); void setTextColor(const QColor& color); + int unitSystem; + private: Qt::Orientation orientation; QList<QGraphicsLineItem*> ticks; @@ -166,6 +166,8 @@ protected: virtual void mouseReleaseEvent(QMouseEvent* event); bool isPointOutOfBoundaries(const QPointF& point); qreal fromPercent(qreal percent, Qt::Orientation orientation); +public slots: + void settingsChanged(); private slots: void keyEscAction(); void keyDeleteAction(); |