From 316a140acb60ea1d3d25f41821d838e807888b04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Mon, 28 Mar 2022 15:03:53 +0200 Subject: [PATCH] QFontDatabase: Update docs for QGuiApplication::fontDatabaseChanged() The signal can be emitted not only when user fonts are added or removed, but also when the system fonts change. Change-Id: I8f066ac87e7bc68843cd9014cd3c31af2f3a7890 Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/gui/kernel/qguiapplication.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 6e93ef9e7c3..119c57ac19e 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -4173,7 +4173,10 @@ QInputMethod *QGuiApplication::inputMethod() /*! \fn void QGuiApplication::fontDatabaseChanged() - This signal is emitted when application fonts are loaded or removed. + This signal is emitted when the available fonts have changed. + + This can happen when application fonts are added or removed, or when the + system fonts change. \sa QFontDatabase::addApplicationFont(), QFontDatabase::addApplicationFontFromData(),