summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qguiapplication.h
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2020-05-07 15:46:11 +0200
committerAndy Shaw <andy.shaw@qt.io>2020-05-15 18:46:39 +0200
commit9803ba9b6f74f5ac18220fe145fe1fe4c8f70910 (patch)
tree5e8ebce91c8d308bade5360f8affee7fa3092de8 /src/gui/kernel/qguiapplication.h
parentbd3b978701c32b2e13da853f2064aab369e32745 (diff)
Deprecate QGuiApplication::paletteChanged() signal
Rather than have a paletteChanged() signal which can be connected to for tracking when the application palette 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 paletteChanged() signal in favor of QEvent::ApplicationPaletteChanged. Change-Id: I95da211e30590e357007cc14d8ee266baceba7b3 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/kernel/qguiapplication.h')
-rw-r--r--src/gui/kernel/qguiapplication.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qguiapplication.h b/src/gui/kernel/qguiapplication.h
index 0c642d8ff5..6017cf513f 100644
--- a/src/gui/kernel/qguiapplication.h
+++ b/src/gui/kernel/qguiapplication.h
@@ -188,9 +188,9 @@ Q_SIGNALS:
void commitDataRequest(QSessionManager &sessionManager);
void saveStateRequest(QSessionManager &sessionManager);
#endif
- void paletteChanged(const QPalette &pal);
void applicationDisplayNameChanged();
#if QT_DEPRECATED_SINCE(6, 0)
+ void paletteChanged(const QPalette &pal);
void fontChanged(const QFont &font);
#endif
protected: