diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-05-06 03:11:48 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-05-06 03:11:48 (GMT) |
commit | e909d9a200c7a75dc23542f4603ce86fdc135bab (patch) | |
tree | bd7a16915d67c44b5ed10a50141bbc28fde8833d /examples | |
parent | 3e4116ff5337d41466904b2e381dfa74267264a8 (diff) | |
download | Qt-e909d9a200c7a75dc23542f4603ce86fdc135bab.zip Qt-e909d9a200c7a75dc23542f4603ce86fdc135bab.tar.gz Qt-e909d9a200c7a75dc23542f4603ce86fdc135bab.tar.bz2 |
Cleanup
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/fonts/fonts.qml | 6 | ||||
-rw-r--r-- | examples/declarative/listview/sections.qml | 2 | ||||
-rw-r--r-- | examples/declarative/webview/alerts.qml | 2 |
3 files changed, 5 insertions, 5 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 diff --git a/examples/declarative/listview/sections.qml b/examples/declarative/listview/sections.qml index 0a81f63..21f9f03 100644 --- a/examples/declarative/listview/sections.qml +++ b/examples/declarative/listview/sections.qml @@ -61,7 +61,7 @@ Rectangle { height: 20 Text { x: 2; height: parent.height - verticalAlignment: 'AlignVCenter' + verticalAlignment: Text.AlignVCenter text: section font.bold: true } diff --git a/examples/declarative/webview/alerts.qml b/examples/declarative/webview/alerts.qml index 6a5a0d2..7684c3e 100644 --- a/examples/declarative/webview/alerts.qml +++ b/examples/declarative/webview/alerts.qml @@ -52,7 +52,7 @@ WebView { font.pixelSize: 20 width: webView.width*0.75 wrapMode: Text.WordWrap - horizontalAlignment: "AlignHCenter" + horizontalAlignment: Text.AlignHCenter } } } |