aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/texteditor/texteditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quickcontrols2/texteditor/texteditor.cpp')
-rw-r--r--examples/quickcontrols2/texteditor/texteditor.cpp3
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");