summaryrefslogtreecommitdiffstats
path: root/examples/declarative/fonts/fonts.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/fonts/fonts.qml')
-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