summaryrefslogtreecommitdiffstats
path: root/demos/declarative/flickr/content/Progress.qml
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-05-28 00:58:56 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-05-28 00:58:56 (GMT)
commit4587282af7bfb9f6b1a8329651073bb4127c62b8 (patch)
treeebaa48dc0d02d10f5ce04afa818e957bff0cd1de /demos/declarative/flickr/content/Progress.qml
parentb865ab6508963cbad0a12319b40db17f9925bbde (diff)
parent0a13be045b7e7fdf2b4d1a44b7aba72711375787 (diff)
downloadQt-4587282af7bfb9f6b1a8329651073bb4127c62b8.zip
Qt-4587282af7bfb9f6b1a8329651073bb4127c62b8.tar.gz
Qt-4587282af7bfb9f6b1a8329651073bb4127c62b8.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'demos/declarative/flickr/content/Progress.qml')
-rw-r--r--demos/declarative/flickr/content/Progress.qml14
1 files changed, 11 insertions, 3 deletions
diff --git a/demos/declarative/flickr/content/Progress.qml b/demos/declarative/flickr/content/Progress.qml
index aa2a2e6..743c45e 100644
--- a/demos/declarative/flickr/content/Progress.qml
+++ b/demos/declarative/flickr/content/Progress.qml
@@ -4,8 +4,12 @@ Item {
property var progress: 0
Rect {
- id: Container; anchors.fill: parent; gradientColor: "#66000000";
- pen.color: "white"; pen.width: 0; color: "#66343434"; radius: height/2 - 2
+ id: Container; anchors.fill: parent
+ pen.color: "white"; pen.width: 0; radius: height/2 - 2
+ gradient: Gradient {
+ GradientStop { position: 0; color: "#66343434" }
+ GradientStop { position: 1.0; color: "#66000000" }
+ }
}
Rect {
@@ -13,7 +17,11 @@ Item {
y: 2; height: parent.height-4;
x: 2; width: Math.max(parent.width * progress - 4, 0);
opacity: width < 1 ? 0 : 1
- color: "lightsteelblue"; gradientColor: "steelblue"; radius: height/2 - 2
+ gradient: Gradient {
+ GradientStop { position: 0; color: "lightsteelblue" }
+ GradientStop { position: 1.0; color: "steelblue" }
+ }
+ radius: height/2 - 2
}
Text {