From 766a43ca4190b32617e1361548d028271263378a Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Mon, 13 Aug 2012 09:45:32 +0200 Subject: Update to latest declarative --- examples/animatedbackground/BackgroundSwirls.qml | 9 +++++---- examples/animatedbackground/SlideDeck.qml | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/animatedbackground/BackgroundSwirls.qml b/examples/animatedbackground/BackgroundSwirls.qml index c1c4dde..5321842 100644 --- a/examples/animatedbackground/BackgroundSwirls.qml +++ b/examples/animatedbackground/BackgroundSwirls.qml @@ -58,10 +58,12 @@ Item { property color color2: Qt.rgba(0.8, 0.8, 1, 0.3) gradient: Gradient { - GradientStop { position: 0; color: colorTableItem.color1 } + GradientStop { position: 0.0; color: "transparent"} + GradientStop { position: 0.05; color: colorTableItem.color1 } GradientStop { position: 0.3; color: "transparent" } GradientStop { position: 0.7; color: "transparent" } - GradientStop { position: 1; color: colorTableItem.color2 } + GradientStop { position: 0.95; color: colorTableItem.color2 } + GradientStop { position: 1.0; color: "transparent" } } visible: false @@ -106,8 +108,7 @@ Item { sizeVariation: 2 acceleration: AngleDirection { angle: 90; angleVariation: 360; magnitude: 20; } - speed: AngleDirection { angle: -90; angleVariation: 360; magnitude: 10; } - + velocity: AngleDirection { angle: -90; angleVariation: 360; magnitude: 10; } } } diff --git a/examples/animatedbackground/SlideDeck.qml b/examples/animatedbackground/SlideDeck.qml index e0835a6..ba3d2ed 100644 --- a/examples/animatedbackground/SlideDeck.qml +++ b/examples/animatedbackground/SlideDeck.qml @@ -55,7 +55,7 @@ Presentation { title: "Composition" content: [ "Gradient Rectangle", - "Swirls using ShaderEffectItem", + "Swirls using ShaderEffect", " Movement using a vertexShader", " Colorized using a gradient rect converted to a texture", " Controlled using QML properties and animations", -- cgit v1.2.3