Fix a few errors in the testplasmoids

wilder-5.14
Sebastian Kügler 13 years ago
parent a02b3c7681
commit 8ca5ab6ff7
  1. 3
      applets/testshaderapplet/contents/ui/EditorPage.qml
  2. 10
      applets/testshaderapplet/contents/ui/WobbleExample.qml
  3. 7
      applets/testshaderapplet/contents/ui/testshaderapplet.qml

@ -47,7 +47,8 @@ PlasmaComponents.Page {
ShaderEffectSource {
id: effectSource
sourceItem: imageItem
hideSource: hideSourceCheckbox.checked
//hideSource: hideSourceCheckbox.checked
hideSource: true
}
ShaderEffect {

@ -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

@ -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
}

Loading…
Cancel
Save