From cde1a8a10b611e3e3cf048ec1b108c031ef1b2a9 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Mon, 2 Nov 2020 19:41:19 +0100 Subject: 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 --- examples/quickcontrols2/texteditor/texteditor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples') 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("io.qt.examples.texteditor", 1, 0, "DocumentHandler"); -- cgit v1.2.3