diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-27 23:41:51 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-02-06 10:00:39 -0800 |
commit | 0b0e6672d5622238c2fb583dad6b51813b9338b3 (patch) | |
tree | d720b6d5b6d176667b029de691822c54ca8718c9 /profile-widget/profilewidget2.h | |
parent | aefbde93ce161c08b4aca31aee4e3fc45ab72003 (diff) | |
download | subsurface-0b0e6672d5622238c2fb583dad6b51813b9338b3.tar.gz |
profile: detect dive-mode change in profile
The profile must be replotted when the dive mode changes.
Weirdly, this was routed via the dive-information tab
(making it inherently non-mobile compatible). Detect
such a change directly in the profile.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/profilewidget2.h')
-rw-r--r-- | profile-widget/profilewidget2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h index be40694a7..b2632d511 100644 --- a/profile-widget/profilewidget2.h +++ b/profile-widget/profilewidget2.h @@ -22,6 +22,7 @@ #include "core/color.h" #include "core/pictureobj.h" #include "core/units.h" +#include "core/subsurface-qt/divelistnotifier.h" class RulerItem2; struct dive; @@ -102,6 +103,7 @@ public slots: // Necessary to call from QAction's signals. void settingsChanged(); void actionRequestedReplot(bool triggered); + void divesChanged(const QVector<dive *> &dives, DiveField field); void setEmptyState(); void setProfileState(); #ifndef SUBSURFACE_MOBILE |