From 8eb8a46b11a991223690d3ced86a827945f7098b Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Thu, 11 Aug 2011 20:05:19 +1000 Subject: [PATCH] Tweak particle examples Some of them weren't scaling well when in the examples launcher. Change-Id: Ib6049fb5b3c9a99775008ae9072750c2424ad6ed Reviewed-on: http://codereview.qt.nokia.com/2857 Reviewed-by: Alan Alpert Reviewed-by: Qt Sanity Bot --- .../particles/allsmiles/ultraparticles.qml | 2 +- .../particles/modelparticles/gridsplosion.qml | 2 +- .../declarative/particles/trails/turbulence.qml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/declarative/particles/allsmiles/ultraparticles.qml b/examples/declarative/particles/allsmiles/ultraparticles.qml index 0ea095d..eda1c8f 100644 --- a/examples/declarative/particles/allsmiles/ultraparticles.qml +++ b/examples/declarative/particles/allsmiles/ultraparticles.qml @@ -104,6 +104,6 @@ Rectangle{ anchors.margins: 16 text: "... can you be trusted with the power?" style: Text.Outline; styleColor: "#AAAAAA" - font.pixelSize: 32 + font.pixelSize: width > 400 ? 32 : 16 } } diff --git a/examples/declarative/particles/modelparticles/gridsplosion.qml b/examples/declarative/particles/modelparticles/gridsplosion.qml index db86012..9232eb4 100644 --- a/examples/declarative/particles/modelparticles/gridsplosion.qml +++ b/examples/declarative/particles/modelparticles/gridsplosion.qml @@ -42,7 +42,7 @@ import QtQuick 2.0 import QtQuick.Particles 2.0 import "content" -Item{ +Rectangle{ id: root width: 240 height: 240 diff --git a/examples/declarative/particles/trails/turbulence.qml b/examples/declarative/particles/trails/turbulence.qml index 6159b3e..3f822c7 100644 --- a/examples/declarative/particles/trails/turbulence.qml +++ b/examples/declarative/particles/trails/turbulence.qml @@ -43,7 +43,7 @@ import QtQuick.Particles 2.0 Rectangle{ width: 360 - height: 540 + height: 600 color: "#222222" id: root Image{ @@ -96,7 +96,7 @@ Rectangle{ FollowEmitter{ id: smoke1 width: root.width - height: 232 + height: 258 system: ps particle: "smoke" follow: "flame" -- 1.7.2.5