From 41a4103ffcce0efb6d532a15d307ab98177c997e Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周一, 04 12月 2023 16:57:47 +0800 Subject: [PATCH] Update delegate --- src/core/contexts/abstractwindowcontext_p.h | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/core/contexts/abstractwindowcontext_p.h b/src/core/contexts/abstractwindowcontext_p.h index 4c04734..54471fe 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> @@ -39,10 +40,12 @@ void showSystemMenu(const QPoint &pos); QRegion hitTestShape() const; + bool isInSystemButtons(const QPoint &pos, CoreWindowAgent::SystemButton *button) const; + bool isInTitleBarDraggableArea(const QPoint &pos) const; 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