From eb266da10552eeefcb0f7dfe514d4385aec563f8 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周日, 03 12月 2023 05:05:23 +0800 Subject: [PATCH] Add windows context implementation --- src/core/contexts/abstractwindowcontext_p.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/core/contexts/abstractwindowcontext_p.h b/src/core/contexts/abstractwindowcontext_p.h index 4c04734..c9b1374 100644 --- a/src/core/contexts/abstractwindowcontext_p.h +++ b/src/core/contexts/abstractwindowcontext_p.h @@ -2,6 +2,7 @@ #define ABSTRACTWINDOWCONTEXT_P_H #include <array> +#include <memory> #include <QtCore/QSet> #include <QtGui/QWindow> @@ -42,7 +43,7 @@ protected: QWindow *m_windowHandle; - WindowItemDelegate *m_delegate; + std::unique_ptr<WindowItemDelegate> m_delegate; QSet<QObject *> m_hitTestVisibleItems; QList<QRect> m_hitTestVisibleRects; -- Gitblit v1.9.1