summaryrefslogtreecommitdiffstats
path: root/profile-widget/qmlprofile.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-21 04:42:04 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-21 13:12:37 -0800
commita3e0d1ceb4bdf97c6e11c98efa0cc8b6c56e1f78 (patch)
tree1ed72e4dd0cd5a4baec08867e96f4c4633b4c762 /profile-widget/qmlprofile.h
parent1228dec19f7d26886498d6a0dd0e7e1cc543c611 (diff)
downloadsubsurface-a3e0d1ceb4bdf97c6e11c98efa0cc8b6c56e1f78.tar.gz
mobile/profile: listen to dive changes and redraw profile
If a dive changes, we should simply redraw the profile. This could be improved by checking for the fields that might impact the profile at all, but this is definitely a step in the right direction. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget/qmlprofile.h')
-rw-r--r--profile-widget/qmlprofile.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/profile-widget/qmlprofile.h b/profile-widget/qmlprofile.h
index 15bfac0c0..a67bc8c2f 100644
--- a/profile-widget/qmlprofile.h
+++ b/profile-widget/qmlprofile.h
@@ -3,6 +3,7 @@
#define QMLPROFILE_H
#include "profilewidget2.h"
+#include "core/subsurface-qt/divelistnotifier.h"
#include <QQuickPaintedItem>
class QMLProfile : public QQuickPaintedItem
@@ -38,6 +39,9 @@ private:
QScopedPointer<ProfileWidget2> m_profileWidget;
void updateProfile();
+private slots:
+ void divesChanged(const QVector<dive *> &dives, DiveField);
+
signals:
void rightAlignedChanged();
void devicePixelRatioChanged();