From 979dc0c25f1fcb6e6d4db015adc49ffad73978c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Thu, 23 Jan 2014 02:18:58 +0100 Subject: [PATCH] Add test for devicePixelRatio --- examples/applets/testtheme/contents/ui/ThemePage.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/examples/applets/testtheme/contents/ui/ThemePage.qml b/examples/applets/testtheme/contents/ui/ThemePage.qml index f75f3f1c4..29d85e80a 100644 --- a/examples/applets/testtheme/contents/ui/ThemePage.qml +++ b/examples/applets/testtheme/contents/ui/ThemePage.qml @@ -61,6 +61,18 @@ Item { id: dpilabel } } + Row { + PlasmaComponents.Label { + text: "units.devicePixelRatio: " + width: cwidth + } + PlasmaComponents.Label { + width: cheight + height: cheight / 2 + text: units.devicePixelRatio + } + } + Row { PlasmaComponents.Label { text: "units.gridUnit: "