Tweak particle examples
authorAlan Alpert <alan.alpert@nokia.com>
Thu, 11 Aug 2011 10:05:19 +0000 (20:05 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 15 Aug 2011 04:48:30 +0000 (06:48 +0200)
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 <alan.alpert@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
examples/declarative/particles/allsmiles/ultraparticles.qml
examples/declarative/particles/modelparticles/gridsplosion.qml
examples/declarative/particles/trails/turbulence.qml

index 0ea095d..eda1c8f 100644 (file)
@@ -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
     }
 }
index db86012..9232eb4 100644 (file)
@@ -42,7 +42,7 @@ import QtQuick 2.0
 import QtQuick.Particles 2.0
 import "content"
 
-Item{
+Rectangle{
     id: root
     width: 240
     height: 240
index 6159b3e..3f822c7 100644 (file)
@@ -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"