From 54623b054721d42db721d0ba7429b6f8878fc1a5 Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 周二, 26 12月 2023 02:44:18 +0800
Subject: [PATCH] minor tweaks

---
 src/core/contexts/win32windowcontext_p.h |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/src/core/contexts/win32windowcontext_p.h b/src/core/contexts/win32windowcontext_p.h
index a56aac8..6a01e16 100644
--- a/src/core/contexts/win32windowcontext_p.h
+++ b/src/core/contexts/win32windowcontext_p.h
@@ -1,12 +1,21 @@
 #ifndef WIN32WINDOWCONTEXT_P_H
 #define WIN32WINDOWCONTEXT_P_H
 
+//
+//  W A R N I N G !!!
+//  -----------------
+//
+// This file is not part of the QWindowKit API. It is used purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or may even be removed.
+//
+
 #include <QWKCore/qwindowkit_windows.h>
 #include <QWKCore/private/abstractwindowcontext_p.h>
 
 namespace QWK {
 
-    class QWK_CORE_EXPORT Win32WindowContext : public AbstractWindowContext {
+    class Win32WindowContext : public AbstractWindowContext {
         Q_OBJECT
     public:
         Win32WindowContext();
@@ -24,8 +33,12 @@
         QString key() const override;
         void virtual_hook(int id, void *data) override;
 
+        QVariant windowAttribute(const QString &key) const override;
+
     protected:
-        bool setupHost() override;
+        void winIdChanged() override;
+        bool windowAttributeChanged(const QString &key, const QVariant &attribute,
+                                    const QVariant &oldAttribute) override;
 
     public:
         bool windowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT *result);

--
Gitblit v1.9.1