From 027ae43b4cbe033b0e31b3c15a16297412c4ff54 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Thu, 12 May 2011 09:43:18 +0200 Subject: some small fixes --- examples/animatedbackground/SlideDeck.qml | 7 ++++--- examples/animatedbackground/Swirl.qml | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/examples/animatedbackground/SlideDeck.qml b/examples/animatedbackground/SlideDeck.qml index ed5d46b..6abc374 100644 --- a/examples/animatedbackground/SlideDeck.qml +++ b/examples/animatedbackground/SlideDeck.qml @@ -44,6 +44,7 @@ Presentation { model: 4 Swirl { + width: parent.width anchors.bottom: parent.bottom height: parent.height / (2 + index) opacity: 0.3 @@ -66,13 +67,13 @@ Presentation { anchors.fill: parent system: particles particlesPerSecond: Math.sqrt(parent.width * parent.height) / 30 - particleDuration: 1000 + particleDuration: 2000 emitting: true particleSize: 4 particleSizeVariation: 2 - acceleration: AngleVector{ angle: 90; angleVariation: 360; magnitude: 50; } - speed: AngleVector{ angle: 90; angleVariation: 360; magnitude: 10; } + acceleration: AngleVector{ angle: 90; angleVariation: 360; magnitude: 20; } + speed: AngleVector{ angle: -90; angleVariation: 360; magnitude: 10; } } diff --git a/examples/animatedbackground/Swirl.qml b/examples/animatedbackground/Swirl.qml index 6bba3dd..e50de3a 100644 --- a/examples/animatedbackground/Swirl.qml +++ b/examples/animatedbackground/Swirl.qml @@ -3,8 +3,8 @@ ShaderEffectItem { id: shader - width: parent.width - height: 100 + width: 400 + height: 300 property real speed: 1 @@ -23,7 +23,7 @@ ShaderEffectItem { property real amplitude: height / 2 - property variant colorTable + property variant colorTable: ShaderEffectSource { sourceItem: Rectangle { width: 4; height: 4; color: "steelblue" } } fragmentShader: " uniform lowp float qt_Opacity; -- cgit v1.2.3