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 <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-02-17 10:42:56 -08:00
parent 3cf958e658
commit f277b525c3
2 changed files with 14 additions and 6 deletions

View file

@ -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<ProfileWidget2> m_profileWidget;
void updateProfile();
signals:
void rightAlignedChanged();