From 7a54badb4a5782c551deb2919f3c489fdb4fbc02 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周日, 03 12月 2023 17:17:40 +0800 Subject: [PATCH] Add snap layout handling --- src/core/corewindowagent_p.h | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/corewindowagent_p.h b/src/core/corewindowagent_p.h index 4c31d01..013ccbe 100644 --- a/src/core/corewindowagent_p.h +++ b/src/core/corewindowagent_p.h @@ -7,9 +7,7 @@ namespace QWK { class QWK_CORE_EXPORT CoreWindowAgentPrivate { - Q_DISABLE_COPY(CoreWindowAgentPrivate) Q_DECLARE_PUBLIC(CoreWindowAgent) - public: CoreWindowAgentPrivate(); virtual ~CoreWindowAgentPrivate(); @@ -18,9 +16,11 @@ CoreWindowAgent *q_ptr; // no need to initialize - bool setup(QWindow *window, const WindowItemDelegatePtr &delegate); + bool setup(QWindow *window, WindowItemDelegate *delegate); - WindowContextPtr eventHandler; + std::unique_ptr<AbstractWindowContext> eventHandler; + + Q_DISABLE_COPY_MOVE(CoreWindowAgentPrivate) }; } -- Gitblit v1.9.1