diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-08-07 00:01:56 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-08-07 00:01:56 (GMT) |
commit | f0ec53447574e7d4bf2db426d9409e918f5acd69 (patch) | |
tree | 91f5bc5f703b7f87bbf21005d353da18088e21a8 /demos | |
parent | dbf6d52148c0265ccc6aec64f4a873a066535fc8 (diff) | |
download | Qt-f0ec53447574e7d4bf2db426d9409e918f5acd69.zip Qt-f0ec53447574e7d4bf2db426d9409e918f5acd69.tar.gz Qt-f0ec53447574e7d4bf2db426d9409e918f5acd69.tar.bz2 |
Make Flickr smooth again.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/declarative/flickr/content/Progress.qml | 4 | ||||
-rw-r--r-- | demos/declarative/flickr/content/Slider.qml | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/demos/declarative/flickr/content/Progress.qml b/demos/declarative/flickr/content/Progress.qml index ae6bb18..4268963 100644 --- a/demos/declarative/flickr/content/Progress.qml +++ b/demos/declarative/flickr/content/Progress.qml @@ -6,7 +6,7 @@ Item { property var progress: 0 Rect { - id: Container; anchors.fill: parent + id: Container; anchors.fill: parent; smooth: true border.color: "white"; border.width: 0; radius: height/2 - 2 gradient: Gradient { GradientStop { position: 0; color: "#66343434" } @@ -18,7 +18,7 @@ Item { id: Fill y: 2; height: parent.height-4; x: 2; width: Math.max(parent.width * progress - 4, 0); - opacity: width < 1 ? 0 : 1 + opacity: width < 1 ? 0 : 1; smooth: true gradient: Gradient { GradientStop { position: 0; color: "lightsteelblue" } GradientStop { position: 1.0; color: "steelblue" } diff --git a/demos/declarative/flickr/content/Slider.qml b/demos/declarative/flickr/content/Slider.qml index 0c15ec6..51385bc 100644 --- a/demos/declarative/flickr/content/Slider.qml +++ b/demos/declarative/flickr/content/Slider.qml @@ -16,16 +16,16 @@ Item { gradient: Gradient { GradientStop { position: 0.0; color: "#66343434" } GradientStop { position: 1.0; color: "#66000000" } - } + } } Rect { - id: Handle + id: Handle; smooth: true x: Slider.width / 2 - Handle.width / 2; y: 2; width: 30; height: Slider.height-4; radius: 6 gradient: Gradient { GradientStop { position: 0.0; color: "lightgray" } GradientStop { position: 1.0; color: "gray" } - } + } MouseRegion { anchors.fill: parent; drag.target: parent |