diff options
author | Paul Wicking <paul.wicking@qt.io> | 2020-08-20 14:40:06 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2020-08-28 11:58:17 +0200 |
commit | 2870c201dcd8093d557cec83df3228fe944ca203 (patch) | |
tree | 1e86cec8ccff249e09ed9fcb8f45677b33f44002 /src/gui/text/qfontdatabase.cpp | |
parent | b5a0baa061a20b7979b151491c78e8638424d475 (diff) |
Doc: Compile qfontdatabase snippets
* Extend GUI snippets by adding the qfontdatabase project.
* Rename the snippet file and replace main() with wrapper().
* Minor adjustments of the snippet itself.
* Update documentation that includes the snippet.
Done-with: Nico Vertriest <nico.vertriest@qt.io>
Task-number: QTBUG-81486
Change-Id: Id23aff01a4c919c5264f7059971cb63398c2298c
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/gui/text/qfontdatabase.cpp')
-rw-r--r-- | src/gui/text/qfontdatabase.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/text/qfontdatabase.cpp b/src/gui/text/qfontdatabase.cpp index 1afaedaa09..43f7f5b35a 100644 --- a/src/gui/text/qfontdatabase.cpp +++ b/src/gui/text/qfontdatabase.cpp @@ -1237,8 +1237,7 @@ QString QFontDatabase::styleString(const QFontInfo &fontInfo) Example: - \snippet qfontdatabase/main.cpp 0 - \snippet qfontdatabase/main.cpp 1 + \snippet qfontdatabase/qfontdatabase_snippets.cpp 0 This example gets the list of font families, the list of styles for each family, and the point sizes that are available for |