Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qmlvisual / qdeclarativetext / font / richtext.qml
1 import QtQuick 1.0
2 import "../../shared" 1.0
3
4 Rectangle {
5     id: s; width: 620; height: 300; color: "lightsteelblue"
6     property string text: "<b>The</b> <i>quick</i> <u>brown</u> <o>fox</o> <big>jumps</big> <small>over</small> <tt>the</tt> <s>lazy</s> <em>dog</em>."
7
8     Column {
9         spacing: 6
10         TestText {
11             text: s.text
12         }
13         TestText {
14             text: s.text; font.pixelSize: 18
15         }
16         TestText {
17             text: s.text; font.pixelSize: 24
18         }
19         TestText {
20             text: s.text; color: "red"; smooth: true
21         }
22         TestText {
23             text: s.text; font.capitalization: "AllUppercase"
24         }
25         TestText {
26             text: s.text; font.underline: true
27         }
28         TestText {
29             text: s.text; font.overline: true; smooth: true
30         }
31         TestText {
32             text: s.text; font.strikeout: true
33         }
34         TestText {
35             text: s.text; font.underline: true; font.overline: true; font.strikeout: true
36         }
37         TestText {
38             text: s.text; font.letterSpacing: 2
39         }
40         TestText {
41             text: s.text; font.underline: true; font.letterSpacing: 2; font.capitalization: "AllUppercase"; color: "blue"
42         }
43         TestText {
44             text: s.text; font.overline: true; font.wordSpacing: 25; font.capitalization: "Capitalize"; color: "green"
45         }
46     }
47 }