diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-02 19:41:19 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-03 16:55:32 +0100 |
commit | cde1a8a10b611e3e3cf048ec1b108c031ef1b2a9 (patch) | |
tree | f3b7d219c11f3fcf44afb616602dceda90184351 /examples | |
parent | 11057b37220eb1b2d6d0cb267f7ab8f4afa91901 (diff) |
Get rid of all instance usage of QFontDatabase
All QFontDatabase APIs are static, use them accordingly.
Task-number: QTBUG-88114
Change-Id: Iae40e1354eaa6a6098a9fdbce9e237a9f498cc7d
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/quickcontrols2/texteditor/texteditor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/quickcontrols2/texteditor/texteditor.cpp b/examples/quickcontrols2/texteditor/texteditor.cpp index 040ca6d0..9b882dc8 100644 --- a/examples/quickcontrols2/texteditor/texteditor.cpp +++ b/examples/quickcontrols2/texteditor/texteditor.cpp @@ -73,8 +73,7 @@ int main(int argc, char *argv[]) QGuiApplication app(argc, argv); #endif - QFontDatabase fontDatabase; - if (fontDatabase.addApplicationFont(":/fonts/fontello.ttf") == -1) + if (QFontDatabase::addApplicationFont(":/fonts/fontello.ttf") == -1) qWarning() << "Failed to load fontello.ttf"; qmlRegisterType<DocumentHandler>("io.qt.examples.texteditor", 1, 0, "DocumentHandler"); |