diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-11-03 01:54:57 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-11-03 01:54:57 (GMT) |
commit | 9063457d08b2bcc8c055f6f0370f73360e6ec1dc (patch) | |
tree | d0bbae0c62ded054c5de1e3e3b394a94c2c0758c /examples/declarative/fonts/banner.qml | |
parent | 1e8034a10d2496d7fb7aa987357333c6e2c3258d (diff) | |
download | Qt-9063457d08b2bcc8c055f6f0370f73360e6ec1dc.zip Qt-9063457d08b2bcc8c055f6f0370f73360e6ec1dc.tar.gz Qt-9063457d08b2bcc8c055f6f0370f73360e6ec1dc.tar.bz2 |
* add more font examples
* add missing properties to QmlFontValueType
Diffstat (limited to 'examples/declarative/fonts/banner.qml')
-rw-r--r-- | examples/declarative/fonts/banner.qml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/declarative/fonts/banner.qml b/examples/declarative/fonts/banner.qml new file mode 100644 index 0000000..ece481b --- /dev/null +++ b/examples/declarative/fonts/banner.qml @@ -0,0 +1,18 @@ +import Qt 4.6 + +Rectangle { + id: screen + width: 640; height: 320; color: "steelblue" + + property int pixelSize: screen.height * 1.25 + property color textColor: "lightsteelblue" + property string text: "Hello world! " + + Row { + y: -screen.height / 4.5 + x: NumberAnimation { from: 0; to: -text.width; duration: 6000; running: true; repeat: true } + 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 } + } +} |