From b89902c3e7b8ba1237c310ead973056ef15dff58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Wed, 22 Jan 2014 01:35:20 +0100 Subject: [PATCH] use units.* in testtheme applet These calls have moved out of theme. --- examples/applets/testcomponents/contents/ui/ThemePage.qml | 2 +- examples/applets/testtheme/contents/ui/ThemePage.qml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/applets/testcomponents/contents/ui/ThemePage.qml b/examples/applets/testcomponents/contents/ui/ThemePage.qml index d67c4be80..08fcd533d 100644 --- a/examples/applets/testcomponents/contents/ui/ThemePage.qml +++ b/examples/applets/testcomponents/contents/ui/ThemePage.qml @@ -39,7 +39,7 @@ PlasmaComponents.Page { Column { //anchors.fill: parent - spacing: _s / 4 + //spacing: _s / 4 PlasmaExtras.Title { width: parent.width diff --git a/examples/applets/testtheme/contents/ui/ThemePage.qml b/examples/applets/testtheme/contents/ui/ThemePage.qml index b3ed7ec93..3c6da3b35 100644 --- a/examples/applets/testtheme/contents/ui/ThemePage.qml +++ b/examples/applets/testtheme/contents/ui/ThemePage.qml @@ -52,8 +52,8 @@ Item { width: cwidth/2 onClicked: { print("DPI Button onClicked"); - print(units.gridUnit); - var d = theme.dpi(dpilabel); + units.printScreenInfo(dpilabel); + var d = units.dpi(dpilabel); dpilabel.text = "\t" + d } }