From c94101dd4fc6a92e0039aa4649f17db5f652c766 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 26 Nov 2013 18:07:08 -0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'qt-ui/diveplanner.h') 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 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(); -- cgit v1.2.3-70-g09d2