summaryrefslogtreecommitdiffstats
path: root/examples/declarative/fonts
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-05-06 03:11:48 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-05-06 03:11:48 (GMT)
commite909d9a200c7a75dc23542f4603ce86fdc135bab (patch)
treebd7a16915d67c44b5ed10a50141bbc28fde8833d /examples/declarative/fonts
parent3e4116ff5337d41466904b2e381dfa74267264a8 (diff)
downloadQt-e909d9a200c7a75dc23542f4603ce86fdc135bab.zip
Qt-e909d9a200c7a75dc23542f4603ce86fdc135bab.tar.gz
Qt-e909d9a200c7a75dc23542f4603ce86fdc135bab.tar.bz2
Cleanup
Diffstat (limited to 'examples/declarative/fonts')
-rw-r--r--examples/declarative/fonts/fonts.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/declarative/fonts/fonts.qml b/examples/declarative/fonts/fonts.qml
index ae31b03..f3eac48 100644
--- a/examples/declarative/fonts/fonts.qml
+++ b/examples/declarative/fonts/fonts.qml
@@ -51,9 +51,9 @@ Rectangle {
}
Text {
text: {
- if (webFont.status == 1) myText
- else if (webFont.status == 2) "Loading..."
- else if (webFont.status == 3) "Error loading font"
+ if (webFont.status == FontLoader.Ready) myText
+ else if (webFont.status == FontLoader.Loading) "Loading..."
+ else if (webFont.status == FontLoader.Error) "Error loading font"
}
color: "lightsteelblue"
width: parent.width