From cd352b186c2881af9342cf76693500ce3a48be8a Mon Sep 17 00:00:00 2001 From: XieLong <xielongmaster@gmail.com> Date: 周日, 15 9月 2024 12:32:05 +0800 Subject: [PATCH] Optimize mainwindow Example code, ensure that only one style is selected at a time. (#137) --- src/core/windowitemdelegate.cpp | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/core/windowitemdelegate.cpp b/src/core/windowitemdelegate.cpp index 25f0bf3..fd8a88e 100644 --- a/src/core/windowitemdelegate.cpp +++ b/src/core/windowitemdelegate.cpp @@ -14,4 +14,10 @@ Q_UNUSED(host); } -} \ No newline at end of file + WinIdChangeEventFilter * + WindowItemDelegate::createWinIdEventFilter(QObject *host, + AbstractWindowContext *context) const { + return new WindowWinIdChangeEventFilter(static_cast<QWindow *>(host), context); + } + +} -- Gitblit v1.9.1