summaryrefslogtreecommitdiffstats
path: root/examples/declarative/text/fonts/banner.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/text/fonts/banner.qml')
-rw-r--r--examples/declarative/text/fonts/banner.qml21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/declarative/text/fonts/banner.qml b/examples/declarative/text/fonts/banner.qml
new file mode 100644
index 0000000..353354a
--- /dev/null
+++ b/examples/declarative/text/fonts/banner.qml
@@ -0,0 +1,21 @@
+import Qt 4.7
+
+Rectangle {
+ id: screen
+
+ property int pixelSize: screen.height * 1.25
+ property color textColor: "lightsteelblue"
+ property string text: "Hello world! "
+
+ width: 640; height: 320
+ color: "steelblue"
+
+ Row {
+ y: -screen.height / 4.5
+
+ NumberAnimation on x { from: 0; to: -text.width; duration: 6000; loops: Animation.Infinite }
+ Text { id: text; font.pixelSize: screen.pixelSize; color: screen.textColor; text: screen.text }
+ Text { font.pixelSize: screen.pixelSize; color: screen.textColor; text: screen.text }
+ Text { font.pixelSize: screen.pixelSize; color: screen.textColor; text: screen.text }
+ }
+}