diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2013-10-25 16:53:55 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-30 15:29:59 +0100 |
commit | 639553f024f7b03706553ebb34825591be75eed2 (patch) | |
tree | 452c75029eb0e4235acd7309190283e31d6ad9f4 /examples/quick/window | |
parent | 7af741357be05429e21965b7bbb487ff09aea94b (diff) |
QtQuick examples make use of the new pixelDensity property
Change-Id: I273fc08405724158fbf7c7d410bfa38fef4600b1
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'examples/quick/window')
-rw-r--r-- | examples/quick/window/ScreenInfo.qml | 3 |
1 files changed, 3 insertions, 0 deletions
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" } |