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>
This commit is contained in:
Tomaz Canabrava 2013-11-26 18:07:08 -02:00 committed by Dirk Hohndel
parent 97fd22b1be
commit c94101dd4f
3 changed files with 19 additions and 22 deletions

View file

@ -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();