From 395bb412eb01213926773e9433d1c05b25792db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Wed, 20 Mar 2013 01:19:46 +0100 Subject: [PATCH] Fix a few errors in the testplasmoids --- .../testshaderapplet/contents/ui/EditorPage.qml | 3 ++- .../testshaderapplet/contents/ui/WobbleExample.qml | 10 ++++++---- .../testshaderapplet/contents/ui/testshaderapplet.qml | 7 ++++--- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/shell/applets/testshaderapplet/contents/ui/EditorPage.qml b/src/shell/applets/testshaderapplet/contents/ui/EditorPage.qml index c835d3487..f6cd29165 100644 --- a/src/shell/applets/testshaderapplet/contents/ui/EditorPage.qml +++ b/src/shell/applets/testshaderapplet/contents/ui/EditorPage.qml @@ -47,7 +47,8 @@ PlasmaComponents.Page { ShaderEffectSource { id: effectSource sourceItem: imageItem - hideSource: hideSourceCheckbox.checked + //hideSource: hideSourceCheckbox.checked + hideSource: true } ShaderEffect { diff --git a/src/shell/applets/testshaderapplet/contents/ui/WobbleExample.qml b/src/shell/applets/testshaderapplet/contents/ui/WobbleExample.qml index e2d83b7fd..64d9f50d7 100644 --- a/src/shell/applets/testshaderapplet/contents/ui/WobbleExample.qml +++ b/src/shell/applets/testshaderapplet/contents/ui/WobbleExample.qml @@ -64,8 +64,10 @@ ShaderExample { maximumValue: 6000 value: 3000 onValueChanged: { - timeAnimation.duration = maximumValue - value +1; - timeAnimation.restart(); + if (timeAnimation != null) { + timeAnimation.duration = maximumValue - value +1; + timeAnimation.restart(); + } } } } @@ -95,8 +97,8 @@ ShaderExample { PlasmaCore.IconItem { id: iconItem source: "plasma" - width: parent.width - height: parent.height + width: 400 + height: 400 // width: parent.height // height: width anchors.centerIn: parent diff --git a/src/shell/applets/testshaderapplet/contents/ui/testshaderapplet.qml b/src/shell/applets/testshaderapplet/contents/ui/testshaderapplet.qml index 691a80bdc..9ab272f07 100644 --- a/src/shell/applets/testshaderapplet/contents/ui/testshaderapplet.qml +++ b/src/shell/applets/testshaderapplet/contents/ui/testshaderapplet.qml @@ -30,6 +30,7 @@ Item { property int _s: theme.iconSizes.small property int _h: theme.iconSizes.desktop + property int _m: 12 Item { id: mainItem @@ -67,9 +68,9 @@ Item { WobbleExample { id: wobbleExample } - ColorExample { - id: colorExample - } +// ColorExample { +// id: colorExample +// } Shadows { id: shadowExample }