From 639553f024f7b03706553ebb34825591be75eed2 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Fri, 25 Oct 2013 16:53:55 +0200 Subject: QtQuick examples make use of the new pixelDensity property Change-Id: I273fc08405724158fbf7c7d410bfa38fef4600b1 Reviewed-by: Jens Bache-Wiig --- examples/quick/window/ScreenInfo.qml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/quick/window') diff --git a/examples/quick/window/ScreenInfo.qml b/examples/quick/window/ScreenInfo.qml index e4abc8d69d..e422a51a71 100644 --- a/examples/quick/window/ScreenInfo.qml +++ b/examples/quick/window/ScreenInfo.qml @@ -79,6 +79,9 @@ Item { Text { text: "dimensions" } Text { text: Screen.width + "x" + Screen.height } + Text { text: "pixel density" } + Text { text: Screen.pixelDensity.toFixed(2) + " dots/mm" } + Text { text: "logical pixel density" } Text { text: Screen.logicalPixelDensity.toFixed(2) + " dots/mm" } -- cgit v1.2.3