summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qdeclarativefontloader.cpp
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2011-02-22 04:12:05 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2011-02-22 04:12:05 (GMT)
commitbf9ca539dc4c5efff801856ad9d3f7e14dabad26 (patch)
treea5ae494b6e8a2b33f4345f484ba2ead04aca761e /src/declarative/util/qdeclarativefontloader.cpp
parentb254be20c03d4dbfc1803cd40dc95d52115b955c (diff)
parenta34e2ab6f50cc91a4fca5cd7fd7bd22e6495b0c1 (diff)
downloadQt-bf9ca539dc4c5efff801856ad9d3f7e14dabad26.zip
Qt-bf9ca539dc4c5efff801856ad9d3f7e14dabad26.tar.gz
Qt-bf9ca539dc4c5efff801856ad9d3f7e14dabad26.tar.bz2
Merge branch '4.7' of git://scm.dev.nokia.troll.no/qt/qt into 4.7
Conflicts: tools/qml/qml.pri
Diffstat (limited to 'src/declarative/util/qdeclarativefontloader.cpp')
-rw-r--r--src/declarative/util/qdeclarativefontloader.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/declarative/util/qdeclarativefontloader.cpp b/src/declarative/util/qdeclarativefontloader.cpp
index d39da3f..eba9cf9 100644
--- a/src/declarative/util/qdeclarativefontloader.cpp
+++ b/src/declarative/util/qdeclarativefontloader.cpp
@@ -262,8 +262,18 @@ void QDeclarativeFontLoader::updateFontInfo(const QString& name, QDeclarativeFon
Example:
\qml
- FontLoader { id: webFont; source: "http://www.mysite.com/myfont.ttf" }
- Text { text: "Fancy font"; font.family: webFont.name }
+ Item {
+ width: 200; height: 50
+
+ FontLoader {
+ id: webFont
+ source: "http://www.mysite.com/myfont.ttf"
+ }
+ Text {
+ text: "Fancy font"
+ font.family: webFont.name
+ }
+ }
\endqml
*/
QString QDeclarativeFontLoader::name() const