From 8b72eabae325c34d8eab1544203993015cc91741 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周一, 18 12月 2023 00:54:51 +0800 Subject: [PATCH] Add win32 winIdChange workaround --- src/core/contexts/win32windowcontext_p.h | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/core/contexts/win32windowcontext_p.h b/src/core/contexts/win32windowcontext_p.h index eb03cad..3d2649e 100644 --- a/src/core/contexts/win32windowcontext_p.h +++ b/src/core/contexts/win32windowcontext_p.h @@ -6,7 +6,7 @@ namespace QWK { - class QWK_CORE_EXPORT Win32WindowContext : public AbstractWindowContext { + class Win32WindowContext : public AbstractWindowContext { Q_OBJECT Q_PROPERTY(bool needBorderPainter READ needBorderPainter FINAL) Q_PROPERTY(int borderThickness READ borderThickness FINAL) @@ -30,7 +30,7 @@ int borderThickness() const; protected: - bool setupHost() override; + void winIdChanged(QWindow *oldWindow, bool destroyed) override; public: bool windowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT *result); @@ -50,9 +50,6 @@ bool nonClientCalcSizeHandler(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT *result); - - bool themeStuffHandler(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, - LRESULT *resul); protected: WId windowId = 0; -- Gitblit v1.9.1