summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/mobilecomponents/Units.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qt-mobile/qml/mobilecomponents/Units.qml')
-rw-r--r--qt-mobile/qml/mobilecomponents/Units.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-mobile/qml/mobilecomponents/Units.qml b/qt-mobile/qml/mobilecomponents/Units.qml
index 971336301..8b5032a71 100644
--- a/qt-mobile/qml/mobilecomponents/Units.qml
+++ b/qt-mobile/qml/mobilecomponents/Units.qml
@@ -81,7 +81,7 @@ QtObject {
* use theme.mSize(theme.defaultFont), units.smallSpacing and units.largeSpacing.
* The devicePixelRatio follows the definition of "device independent pixel" by Microsoft.
*/
- property real devicePixelRatio: Screen.devicePixelRatio
+ property real devicePixelRatio: fontMetrics.height / fontMetrics.font.pointSize
/**
* units.longDuration should be used for longer, screen-covering animations, for opening and