diff options
Diffstat (limited to 'tests/auto/declarative/qmlvisual/qdeclarativetext/font/richtext.qml')
-rw-r--r-- | tests/auto/declarative/qmlvisual/qdeclarativetext/font/richtext.qml | 76 |
1 files changed, 16 insertions, 60 deletions
diff --git a/tests/auto/declarative/qmlvisual/qdeclarativetext/font/richtext.qml b/tests/auto/declarative/qmlvisual/qdeclarativetext/font/richtext.qml index 31b0e69..a748b68 100644 --- a/tests/auto/declarative/qmlvisual/qdeclarativetext/font/richtext.qml +++ b/tests/auto/declarative/qmlvisual/qdeclarativetext/font/richtext.qml @@ -1,91 +1,47 @@ import QtQuick 1.0 +import "../../shared" 1.0 Rectangle { - id: s; width: 800; height: 1000; color: "lightsteelblue" + id: s; width: 620; height: 300; color: "lightsteelblue" 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>." Column { - spacing: 10 - Text { + spacing: 6 + TestText { text: s.text } - Text { + TestText { text: s.text; font.pixelSize: 18 } - Text { - text: s.text; font.pointSize: 25 + TestText { + text: s.text; font.pixelSize: 24 } - Text { + TestText { text: s.text; color: "red"; smooth: true } - Text { + TestText { text: s.text; font.capitalization: "AllUppercase" } - Text { + TestText { text: s.text; font.underline: true } - Text { + TestText { text: s.text; font.overline: true; smooth: true } - Text { + TestText { text: s.text; font.strikeout: true } - Text { + TestText { text: s.text; font.underline: true; font.overline: true; font.strikeout: true } - Text { + TestText { text: s.text; font.letterSpacing: 2 } - Text { + TestText { text: s.text; font.underline: true; font.letterSpacing: 2; font.capitalization: "AllUppercase"; color: "blue" } - Text { + TestText { text: s.text; font.overline: true; font.wordSpacing: 25; font.capitalization: "Capitalize"; color: "green" } - Text { - text: s.text; font.pixelSize: 18; style: Text.Outline; styleColor: "white" - } - Text { - text: s.text; font.pixelSize: 18; style: Text.Sunken; styleColor: "gray" - } - Text { - text: s.text; font.pixelSize: 18; style: Text.Raised; styleColor: "yellow" - } - Text { - text: s.text; horizontalAlignment: Text.AlignLeft; width: 800 - } - Text { - text: s.text; horizontalAlignment: Text.AlignHCenter; verticalAlignment: Text.AlignVCenter; width: 800; height: 20 - } - Text { - text: s.text; horizontalAlignment: Text.AlignRight; verticalAlignment: Text.AlignBottom; width: 800; height: 20 - } - Text { - text: s.text; font.pixelSize: 18; style: Text.Outline; styleColor: "white"; wrapMode: Text.WordWrap; width: 200 - } - Text { - text: s.text; elide: Text.ElideLeft; width: 200 - } - Text { - text: s.text; elide: Text.ElideMiddle; width: 200 - } - Text { - text: s.text; elide: Text.ElideRight; width: 200 - } - Text { - text: s.text; elide: Text.ElideLeft; width: 200; wrapMode: Text.WordWrap - } - Text { - text: s.text; elide: Text.ElideMiddle; width: 200; wrapMode: Text.WordWrap - } - Text { - text: s.text; elide: Text.ElideRight; width: 200; wrapMode: Text.WordWrap - } - Text { - text: s.text + " thisisaverylongstringwithnospaces"; width: 150; wrapMode: Text.WrapAnywhere - } - Text { - text: s.text + " thisisaverylongstringwithnospaces"; width: 150; wrapMode: Text.Wrap - } } } |