aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/window/ScreenInfo.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/window/ScreenInfo.qml')
-rw-r--r--examples/quick/window/ScreenInfo.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/window/ScreenInfo.qml b/examples/quick/window/ScreenInfo.qml
index e422a51a71..73700720d8 100644
--- a/examples/quick/window/ScreenInfo.qml
+++ b/examples/quick/window/ScreenInfo.qml
@@ -80,10 +80,10 @@ Item {
Text { text: Screen.width + "x" + Screen.height }
Text { text: "pixel density" }
- Text { text: Screen.pixelDensity.toFixed(2) + " dots/mm" }
+ Text { text: Screen.pixelDensity.toFixed(2) + " dots/mm (" + (Screen.pixelDensity * 25.4).toFixed(2) + " dots/inch)" }
Text { text: "logical pixel density" }
- Text { text: Screen.logicalPixelDensity.toFixed(2) + " dots/mm" }
+ Text { text: Screen.logicalPixelDensity.toFixed(2) + " dots/mm (" + (Screen.logicalPixelDensity * 25.4).toFixed(2) + " dots/inch)" }
Text { text: "available virtual desktop" }
Text { text: Screen.desktopAvailableWidth + "x" + Screen.desktopAvailableHeight }