From 68a9c5fe513e147e4cffd29b50a4714813df411e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Wed, 9 Apr 2025 10:54:49 +0200 Subject: Remove QWindow argument from QWindowSystemInterface::handleThemeChange The QPlatformTheme, and consumers on top such as QStyleHints, are app global, so it doesn't make sense to notify that a single window has changed its theme. None of the QPA plugins pass a QWindow to the function today, after the Windows plugin was taught a few new tricks in a preceding change. [ChangeLog][QPA] QWindowSystemInterface::handleThemeChange no longer takes an optional QWindow. Change-Id: Ia761c95559a56a00763bd3cb95332f377e8de483 Reviewed-by: Volker Hilsheimer --- src/gui/kernel/qwindowsysteminterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/kernel/qwindowsysteminterface.cpp') diff --git a/src/gui/kernel/qwindowsysteminterface.cpp b/src/gui/kernel/qwindowsysteminterface.cpp index 97201770d8b..fa3e2f1d04f 100644 --- a/src/gui/kernel/qwindowsysteminterface.cpp +++ b/src/gui/kernel/qwindowsysteminterface.cpp @@ -828,9 +828,9 @@ void QWindowSystemInterface::handleScreenRefreshRateChange(QScreen *screen, qrea handleWindowSystemEvent(screen, newRefreshRate); } -QT_DEFINE_QPA_EVENT_HANDLER(void, handleThemeChange, QWindow *window) +QT_DEFINE_QPA_EVENT_HANDLER(void, handleThemeChange) { - handleWindowSystemEvent(window); + handleWindowSystemEvent(); } #if QT_CONFIG(draganddrop) -- cgit v1.2.3