summaryrefslogtreecommitdiffstats
path: root/examples/declarative/fillmode/fillmode.qml
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-07-31 05:10:39 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-07-31 05:10:39 (GMT)
commit1af063d9aaff5d0e5e8715202baeced55bbbb0bc (patch)
tree07f350fce0def816328a9dca23f7801bd40d4d7d /examples/declarative/fillmode/fillmode.qml
parent510b9523339d97b8b52175ddb5a21bff706b3d7c (diff)
downloadQt-1af063d9aaff5d0e5e8715202baeced55bbbb0bc.zip
Qt-1af063d9aaff5d0e5e8715202baeced55bbbb0bc.tar.gz
Qt-1af063d9aaff5d0e5e8715202baeced55bbbb0bc.tar.bz2
tile/preservseAspect are now fillMode
as per API review
Diffstat (limited to 'examples/declarative/fillmode/fillmode.qml')
-rw-r--r--examples/declarative/fillmode/fillmode.qml39
1 files changed, 39 insertions, 0 deletions
diff --git a/examples/declarative/fillmode/fillmode.qml b/examples/declarative/fillmode/fillmode.qml
new file mode 100644
index 0000000..473f553
--- /dev/null
+++ b/examples/declarative/fillmode/fillmode.qml
@@ -0,0 +1,39 @@
+import Qt 4.6
+
+Image {
+ width: 400
+ height: 250
+ source: "face.png"
+ fillMode: SequentialAnimation {
+ running: true
+ repeat: true
+ SetPropertyAction { value: "Stretch" }
+ SetPropertyAction { target: Label; property: "text"; value: "Stretch" }
+ PauseAnimation { duration: 1000 }
+ SetPropertyAction { value: "PreserveAspect" }
+ SetPropertyAction { target: Label; property: "text"; value: "PreserveAspect" }
+ PauseAnimation { duration: 1000 }
+ SetPropertyAction { value: "Tile" }
+ SetPropertyAction { target: Label; property: "text"; value: "Tile" }
+ PauseAnimation { duration: 1000 }
+ SetPropertyAction { value: "TileHorizontally" }
+ SetPropertyAction { target: Label; property: "text"; value: "TileHorizontally" }
+ PauseAnimation { duration: 1000 }
+ SetPropertyAction { value: "TileVertically" }
+ SetPropertyAction { target: Label; property: "text"; value: "TileVertically" }
+ PauseAnimation { duration: 1000 }
+ }
+ Text {
+ id: Label
+ font.size: 24
+ color: "blue"
+ style: "Outline"
+ styleColor: "white"
+ anchors { centeredIn: parent }
+ }
+ Rect {
+ pen.color: "black"
+ color: "transparent"
+ anchors { fill: parent; rightMargin: 1; bottomMargin: 1}
+ }
+}