summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qguiapplication.h
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-06-08 21:16:10 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-06-08 23:37:07 +0200
commitbb4402af2b2233100f9ca4a853af34b46cc60ffd (patch)
treed37348884c08e374f5b920f41dd198d4566b1b0a /src/gui/kernel/qguiapplication.h
parent2a864a4f8568b9fe4a56c02926ed5d873bc774b7 (diff)
Add deprecation warnings to QGuiApplication::fontChanged/paletteChanged
And silence those warnings in code that emits those signals. Change-Id: Ic9013648060c9b84b59c44bb5a8c77e48f82d24f Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui/kernel/qguiapplication.h')
-rw-r--r--src/gui/kernel/qguiapplication.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qguiapplication.h b/src/gui/kernel/qguiapplication.h
index 6017cf513f..ac90e18ef9 100644
--- a/src/gui/kernel/qguiapplication.h
+++ b/src/gui/kernel/qguiapplication.h
@@ -190,8 +190,8 @@ Q_SIGNALS:
#endif
void applicationDisplayNameChanged();
#if QT_DEPRECATED_SINCE(6, 0)
- void paletteChanged(const QPalette &pal);
- void fontChanged(const QFont &font);
+ QT_DEPRECATED_VERSION_X_6_0("Handle QEvent::ApplicationPaletteChange instead") void paletteChanged(const QPalette &pal);
+ QT_DEPRECATED_VERSION_X_6_0("Handle QEvent::ApplicationFontChange instead") void fontChanged(const QFont &font);
#endif
protected:
bool event(QEvent *) override;