mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: better handling of device pixel ratio
In order to make sure we don't render the initial profiles with the wrong scale on devices, we need to seed the device pixel ratio with the device default and then update it once the window has been created. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e700ea9638
commit
01d091fbd5
3 changed files with 11 additions and 1 deletions
|
@ -154,6 +154,7 @@ public slots:
|
|||
void refreshDiveList();
|
||||
void screenChanged(QScreen *screen);
|
||||
qreal lastDevicePixelRatio();
|
||||
void setDevicePixelRatio(qreal dpr, QScreen *screen);
|
||||
void appendTextToLog(const QString &newText);
|
||||
void quit();
|
||||
void hasLocationSourceChanged();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue