summaryrefslogtreecommitdiffstats
path: root/profile-widget/qmlprofile.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-24 15:02:17 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-25 09:28:05 -0700
commit6629d046b713e27a85ce2ba69b436629ddcf9804 (patch)
tree35fb519eedbf2e7e7200ed464eea9842945b5b15 /profile-widget/qmlprofile.h
parent577f713f1aece8328a5ff7cca9a0d14ab543c4d4 (diff)
downloadsubsurface-6629d046b713e27a85ce2ba69b436629ddcf9804.tar.gz
mobile/profile: adjust offsets when scaling
If the user is scaling out again we need to make sure that our offsets are adjusted so that we always show a subset of the profile and not 'empty space' outside of it. Instead of reimplementing the offset logic, let's just trigger another paint() call. This requires a trampoline function because of different signal and slot signatures. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget/qmlprofile.h')
-rw-r--r--profile-widget/qmlprofile.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/profile-widget/qmlprofile.h b/profile-widget/qmlprofile.h
index 2798fa733..15bfac0c0 100644
--- a/profile-widget/qmlprofile.h
+++ b/profile-widget/qmlprofile.h
@@ -28,6 +28,8 @@ public:
public slots:
void setMargin(int margin);
void screenChanged(QScreen *screen);
+ void triggerUpdate();
+
private:
int m_diveId;
qreal m_devicePixelRatio;