From 8978e41163283d6c708cd69c046d994210a388b8 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周一, 04 12月 2023 23:37:47 +0800 Subject: [PATCH] minor tweaks --- src/core/contexts/abstractwindowcontext_p.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/contexts/abstractwindowcontext_p.h b/src/core/contexts/abstractwindowcontext_p.h index c9b1374..a92d91d 100644 --- a/src/core/contexts/abstractwindowcontext_p.h +++ b/src/core/contexts/abstractwindowcontext_p.h @@ -16,9 +16,7 @@ class QWK_CORE_EXPORT AbstractWindowContext : public QObject { Q_OBJECT public: - inline AbstractWindowContext(QWindow *window, WindowItemDelegate *delegate) - : m_windowHandle(window), m_delegate(delegate) { - } + AbstractWindowContext(QWindow *window, WindowItemDelegate *delegate); ~AbstractWindowContext() override; public: @@ -40,6 +38,8 @@ 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; -- Gitblit v1.9.1