linux: adapt to latest qtbase changes

The X11 QPA has gained the ability to detect runtime theme changes in Qt 6.4.0

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2022-08-27 13:07:01 +08:00
parent c3338cd9b7
commit 5195a27022
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ void FramelessHelperQt::addWindow(const SystemParameters &params)
params.setWindowFlags(params.getWindowFlags() | Qt::FramelessWindowHint); params.setWindowFlags(params.getWindowFlags() | Qt::FramelessWindowHint);
} }
window->installEventFilter(data.eventFilter); window->installEventFilter(data.eventFilter);
#ifdef Q_OS_LINUX #if (defined(Q_OS_LINUX) && (QT_VERSION < QT_VERSION_CHECK(6, 4, 0)))
Utils::registerThemeChangeNotification(); Utils::registerThemeChangeNotification();
#endif #endif
#ifdef Q_OS_MACOS #ifdef Q_OS_MACOS