diff options
author | willemferguson <willemferguson@zoology.up.ac.za> | 2019-04-30 12:42:33 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-05-15 07:37:14 -0700 |
commit | 1bdf00b2b472078a0b24f1c269782d822cb96e02 (patch) | |
tree | 13a5e784118d9abb0a1bc1dfa9cbe4a9f457de80 /desktop-widgets/tab-widgets/TabDiveInformation.h | |
parent | ca6aa3813956b5e8be68b86ed36a5786b3ee746f (diff) | |
download | subsurface-1bdf00b2b472078a0b24f1c269782d822cb96e02.tar.gz |
Convert the atmospheric pressure in the Information Tab to an editable field
The Information tab shows the atmospheric pressure. Make this value editable
and also ensure that changes to it are undo-able.
Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za>
Diffstat (limited to 'desktop-widgets/tab-widgets/TabDiveInformation.h')
-rw-r--r-- | desktop-widgets/tab-widgets/TabDiveInformation.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveInformation.h b/desktop-widgets/tab-widgets/TabDiveInformation.h index a61b9b414..e2b2e3c94 100644 --- a/desktop-widgets/tab-widgets/TabDiveInformation.h +++ b/desktop-widgets/tab-widgets/TabDiveInformation.h @@ -18,10 +18,14 @@ public: void clear() override; private slots: void divesChanged(dive_trip *trip, const QVector<dive *> &dives, DiveField field); + void on_atmPressVal_editingFinished(); + void on_atmPressType_currentIndexChanged(int index); private: Ui::TabDiveInformation *ui; void updateProfile(); void updateWhen(); + int pressTypeIndex; + void updateTextBox(int event); }; #endif |