diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-03-05 01:18:53 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-03-05 01:18:53 (GMT) |
commit | 24a94c1b88fc72243c53e1bf51b87dc0d0be41b7 (patch) | |
tree | 01d20c577044a351950814a6fda873d489d78bf2 /examples/declarative/fonts | |
parent | 38ff49e632da2bd61ac5fb59f57f62208c2687fd (diff) | |
download | Qt-24a94c1b88fc72243c53e1bf51b87dc0d0be41b7.zip Qt-24a94c1b88fc72243c53e1bf51b87dc0d0be41b7.tar.gz Qt-24a94c1b88fc72243c53e1bf51b87dc0d0be41b7.tar.bz2 |
declarative examples cleanup
Diffstat (limited to 'examples/declarative/fonts')
-rw-r--r-- | examples/declarative/fonts/fonts.qml | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/examples/declarative/fonts/fonts.qml b/examples/declarative/fonts/fonts.qml index 275ad43..6246d16 100644 --- a/examples/declarative/fonts/fonts.qml +++ b/examples/declarative/fonts/fonts.qml @@ -7,11 +7,8 @@ Rectangle { color: "steelblue" FontLoader { id: fixedFont; name: "Courier" } - FontLoader { id: localFont; source: "fonts/tarzenau-ocr-a.ttf" } - FontLoader { id: webFont; source: "http://www.princexml.com/fonts/steffmann/Starburst.ttf" } - FontLoader { id: webFont2; source: "http://wrong.address.org" } Column { anchors.fill: parent; spacing: 10 @@ -55,15 +52,5 @@ Rectangle { width: parent.width; elide: Text.ElideMiddle font.family: webFont.name; font.pointSize: 36 } - Text { - text: { - if (webFont2.status == 1) myText - else if (webFont2.status == 2) "Loading..." - else if (webFont2.status == 3) "Error loading font" - } - color: "lightsteelblue" - width: parent.width; elide: Text.ElideRight - font.family: webFont2.name; font.pointSize: 36 - } } } |