diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2020-11-04 10:55:05 +0100 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2020-11-04 12:59:24 +0100 |
commit | f9feaa20a8b8a875f9da5c8b561aca8bafd446ca (patch) | |
tree | a473af5c1e5300538480d6fce1b7056cb05097c8 /src/quick/util | |
parent | 89ee1a33cb373709af9de565902e97c0299d3bee (diff) |
Remove some outdated comments about FontLoader.name
In 15ea475b40f6ad28d46e5cbd65a1ccc8556a53df, I made FontLoader.name
readonly and got rid of the usage where it could also be used
as an indirection for the font family string. But there were a
couple of comments about this usage still in the documentation,
so those should also be removed.
Change-Id: Ibf182e1252644e155843dea8f85f4a2f7fb56297
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/util')
-rw-r--r-- | src/quick/util/qquickfontloader.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/quick/util/qquickfontloader.cpp b/src/quick/util/qquickfontloader.cpp index 2ae5d00739..e3915723fa 100644 --- a/src/quick/util/qquickfontloader.cpp +++ b/src/quick/util/qquickfontloader.cpp @@ -197,9 +197,9 @@ static void q_QFontLoaderFontsStaticReset() \instantiates QQuickFontLoader \inqmlmodule QtQuick \ingroup qtquick-text-utility - \brief Allows fonts to be loaded by name or URL. + \brief Allows fonts to be loaded by URL. - The FontLoader type is used to load fonts by name or URL. + The FontLoader type is used to load fonts by URL. The \l status indicates when the font has been loaded, which is useful for fonts loaded from remote sources. @@ -209,10 +209,8 @@ static void q_QFontLoaderFontsStaticReset() import QtQuick 2.0 Column { - FontLoader { id: fixedFont; name: "Courier" } FontLoader { id: webFont; source: "http://www.mysite.com/myfont.ttf" } - Text { text: "Fixed-size font"; font: fixedFont.font } Text { text: "Fancy font"; font: webFont.font } } \endqml |