From 2f57263c413021716397841ca9d0bfc9628c8703 Mon Sep 17 00:00:00 2001 From: SineStriker <trueful@163.com> Date: 周三, 06 12月 2023 18:28:52 +0800 Subject: [PATCH] Revert "update pointer usage" --- src/core/contexts/win32windowcontext_p.h | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/core/contexts/win32windowcontext_p.h b/src/core/contexts/win32windowcontext_p.h index b99314e..b8b8fea 100644 --- a/src/core/contexts/win32windowcontext_p.h +++ b/src/core/contexts/win32windowcontext_p.h @@ -9,7 +9,7 @@ class QWK_CORE_EXPORT Win32WindowContext : public AbstractWindowContext { Q_OBJECT public: - Win32WindowContext(QWindow *window, WindowItemDelegate *delegate); + Win32WindowContext(QObject *host, WindowItemDelegate *delegate); ~Win32WindowContext() override; enum WindowPart { @@ -33,6 +33,9 @@ bool snapLayoutHandler(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT *result); + bool customWindowHandler(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, + LRESULT *result); + protected: WId windowId = 0; @@ -42,6 +45,8 @@ // Whether the last mouse leave message is blocked, mainly for handling the unexpected // WM_MOUSELEAVE. bool mouseLeaveBlocked = false; + + bool centered = false; }; } -- Gitblit v1.9.1