summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-05-01 00:49:51 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-05-01 00:49:51 (GMT)
commit020f86805e2f3f9fa8e069c3a0ae04ef4a6d57cd (patch)
tree2015be2a09b23782b0de2202f95f18c0700a9cdd /doc/src/snippets/declarative
parentf57e5f12807e1860839a4b3c47af180230bdbfaa (diff)
downloadQt-020f86805e2f3f9fa8e069c3a0ae04ef4a6d57cd.zip
Qt-020f86805e2f3f9fa8e069c3a0ae04ef4a6d57cd.tar.gz
Qt-020f86805e2f3f9fa8e069c3a0ae04ef4a6d57cd.tar.bz2
Format conversion for animation, states and transitions, and transform
elements.
Diffstat (limited to 'doc/src/snippets/declarative')
-rw-r--r--doc/src/snippets/declarative/pics/qt.pngbin0 -> 514 bytes
-rw-r--r--doc/src/snippets/declarative/rotation.qml27
2 files changed, 27 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/pics/qt.png b/doc/src/snippets/declarative/pics/qt.png
new file mode 100644
index 0000000..cbed1a9
--- /dev/null
+++ b/doc/src/snippets/declarative/pics/qt.png
Binary files differ
diff --git a/doc/src/snippets/declarative/rotation.qml b/doc/src/snippets/declarative/rotation.qml
new file mode 100644
index 0000000..01838dd
--- /dev/null
+++ b/doc/src/snippets/declarative/rotation.qml
@@ -0,0 +1,27 @@
+Rect {
+ width: 360; height: 80
+ color: "white"
+//! [0]
+ HorizontalLayout {
+ margin: 10
+ spacing: 10
+ Image { source: "pics/qt.png" }
+ Image {
+ source: "pics/qt.png"
+ transform: Rotation3D { axis.startX: 30; axis.endX: 30; axis.endY: 60; angle: 18 }
+ }
+ Image {
+ source: "pics/qt.png"
+ transform: Rotation3D { axis.startX: 30; axis.endX: 30; axis.endY: 60; angle: 36 }
+ }
+ Image {
+ source: "pics/qt.png"
+ transform: Rotation3D { axis.startX: 30; axis.endX: 30; axis.endY: 60; angle: 54 }
+ }
+ Image {
+ source: "pics/qt.png"
+ transform: Rotation3D { axis.startX: 30; axis.endX: 30; axis.endY: 60; angle: 72 }
+ }
+ }
+//! [0]
+}