From 01d091fbd5ff88ac530f26c36b2cba3cc936448b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 3 Apr 2017 17:29:06 -0700 Subject: 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 --- mobile-widgets/qmlmanager.h | 1 + 1 file changed, 1 insertion(+) (limited to 'mobile-widgets/qmlmanager.h') diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index 8c5b02fa1..04f4a40dd 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -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(); -- cgit v1.2.3-70-g09d2