From 499afac952920595e6c3d4f94806427f894c7674 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周六, 02 12月 2023 19:05:24 +0800 Subject: [PATCH] optimize code --- src/core/contexts/win32windowcontext_p.h | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/contexts/win32windowcontext_p.h b/src/core/contexts/win32windowcontext_p.h index f1ab71e..b218497 100644 --- a/src/core/contexts/win32windowcontext_p.h +++ b/src/core/contexts/win32windowcontext_p.h @@ -10,16 +10,15 @@ Q_OBJECT public: Win32WindowContext(QWindow *window, WindowItemDelegate *delegate); - ~Win32WindowContext(); + ~Win32WindowContext() override; public: bool setup() override; + bool windowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT *result); + protected: WId windowId; - WNDPROC qtWindowProc; // Original Qt window proc function - - static LRESULT windowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); }; } -- Gitblit v1.9.1