mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
97fd22b1be
commit
c94101dd4f
3 changed files with 19 additions and 22 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue