diff options
author | Andy Shaw <andy.shaw@qt.io> | 2020-04-22 13:56:38 +0200 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2020-04-24 10:10:55 +0200 |
commit | dddd197d42929149eafc5cb7754b7e6b323a4e97 (patch) | |
tree | 472336cee71d3e73e5f33a5d4669b208631df631 /src/gui/kernel/qguiapplication.h | |
parent | 44e8c90ad4ae5a3d08651a61ac9f0937fb49d26b (diff) |
Deprecate QGuiApplication::fontChanged() signal
Rather than have a fontChanged() signal which can be connected to for
tracking when the application font has changed, then it is better to
use the event that is sent to all windows and the application itself.
That way it is easy for a window/widget or item that cares about the
change to the application font to catch it in the event() function.
[ChangeLog][QtGui][QGuiApplication] Deprecated fontChanged() signal in
favor of QEvent::ApplicationFontChanged.
Change-Id: Iae8e832238fc85e385a52305bc04f16e597454b0
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/kernel/qguiapplication.h')
-rw-r--r-- | src/gui/kernel/qguiapplication.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qguiapplication.h b/src/gui/kernel/qguiapplication.h index fc74c5299a..0c642d8ff5 100644 --- a/src/gui/kernel/qguiapplication.h +++ b/src/gui/kernel/qguiapplication.h @@ -190,8 +190,9 @@ Q_SIGNALS: #endif void paletteChanged(const QPalette &pal); void applicationDisplayNameChanged(); +#if QT_DEPRECATED_SINCE(6, 0) void fontChanged(const QFont &font); - +#endif protected: bool event(QEvent *) override; bool compressEvent(QEvent *, QObject *receiver, QPostEventList *) override; |