mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
577f713f1a
commit
6629d046b7
2 changed files with 13 additions and 0 deletions
|
|
@ -28,6 +28,8 @@ public:
|
|||
public slots:
|
||||
void setMargin(int margin);
|
||||
void screenChanged(QScreen *screen);
|
||||
void triggerUpdate();
|
||||
|
||||
private:
|
||||
int m_diveId;
|
||||
qreal m_devicePixelRatio;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue