From f277b525c37bb131910140a19d82ed31053fc0e9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 17 Feb 2020 10:42:56 -0800 Subject: mobile/profile: create updateProfile method This allows us to trigger an update even if the dive displayed stays the same. Signed-off-by: Dirk Hohndel --- profile-widget/qmlprofile.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'profile-widget/qmlprofile.h') diff --git a/profile-widget/qmlprofile.h b/profile-widget/qmlprofile.h index 17a88ba04..6074fb846 100644 --- a/profile-widget/qmlprofile.h +++ b/profile-widget/qmlprofile.h @@ -20,6 +20,8 @@ public: void setDiveId(int diveId); qreal devicePixelRatio() const; void setDevicePixelRatio(qreal dpr); + void setXOffset(qreal value); + void setYOffset(qreal value); public slots: void setMargin(int margin); @@ -29,6 +31,7 @@ private: qreal m_devicePixelRatio; int m_margin; QScopedPointer m_profileWidget; + void updateProfile(); signals: void rightAlignedChanged(); -- cgit v1.2.3-70-g09d2