diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-06-11 01:13:37 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-06-11 01:57:02 (GMT) |
commit | ab0d9f5efd274c8062a03fb3a1c83e4d16afd6fb (patch) | |
tree | eccc035f60887e74cf5553763c64006db8c00f46 /src/declarative/util/qdeclarativefontloader.cpp | |
parent | aa30b0002573b5377b17f26f9fd72ca7d098a36c (diff) | |
download | Qt-ab0d9f5efd274c8062a03fb3a1c83e4d16afd6fb.zip Qt-ab0d9f5efd274c8062a03fb3a1c83e4d16afd6fb.tar.gz Qt-ab0d9f5efd274c8062a03fb3a1c83e4d16afd6fb.tar.bz2 |
Doc improvements, including snippet fixes, linking to examples, making
docs more consistent
Diffstat (limited to 'src/declarative/util/qdeclarativefontloader.cpp')
-rw-r--r-- | src/declarative/util/qdeclarativefontloader.cpp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/declarative/util/qdeclarativefontloader.cpp b/src/declarative/util/qdeclarativefontloader.cpp index 3c2e239..83bdb17 100644 --- a/src/declarative/util/qdeclarativefontloader.cpp +++ b/src/declarative/util/qdeclarativefontloader.cpp @@ -79,18 +79,27 @@ public: /*! \qmlclass FontLoader QDeclarativeFontLoader \since 4.7 - \brief This item allows using fonts by name or url. + \brief The FontLoader element allows fonts to be loaded by name or URL. - Example: + The FontLoader element is used to load fonts by name or URL. + + The \l status indicates when the font has been loaded, which is useful + for fonts loaded from remote sources. + + For example: \qml import Qt 4.7 - FontLoader { id: fixedFont; name: "Courier" } - FontLoader { id: webFont; source: "http://www.mysite.com/myfont.ttf" } + Column { + FontLoader { id: fixedFont; name: "Courier" } + FontLoader { id: webFont; source: "http://www.mysite.com/myfont.ttf" } - Text { text: "Fixed-size font"; font.family: fixedFont.name } - Text { text: "Fancy font"; font.family: webFont.name } + Text { text: "Fixed-size font"; font.family: fixedFont.name } + Text { text: "Fancy font"; font.family: webFont.name } + } \endqml + + \sa {declarative/text/fonts}{Fonts example} */ QDeclarativeFontLoader::QDeclarativeFontLoader(QObject *parent) : QObject(*(new QDeclarativeFontLoaderPrivate), parent) |