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:
Dirk Hohndel 2017-04-03 17:29:06 -07:00
parent e700ea9638
commit 01d091fbd5
3 changed files with 11 additions and 1 deletions

View file

@ -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();