From 2d08f989b16dad059d42c94e3a2cdccdbd3c379e Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 周一, 04 12月 2023 03:38:52 +0800
Subject: [PATCH] Add more comments

---
 src/core/windowitemdelegate.h |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/src/core/windowitemdelegate.h b/src/core/windowitemdelegate.h
index 9886fa5..5794851 100644
--- a/src/core/windowitemdelegate.h
+++ b/src/core/windowitemdelegate.h
@@ -2,27 +2,32 @@
 #define WINDOWITEMDELEGATE_H
 
 #include <QtCore/QObject>
+#include <QtCore/QPoint>
 #include <QtGui/QWindow>
 
-#include <QWKCore/qwkcoreglobal.h>
+#include <QWKCore/corewindowagent.h>
 
 namespace QWK {
 
-    class WindowItemDelegate {
-        Q_DISABLE_COPY(WindowItemDelegate)
-
+    class QWK_CORE_EXPORT WindowItemDelegate {
     public:
-        WindowItemDelegate() = default;
-        virtual ~WindowItemDelegate() = default;
+        WindowItemDelegate();
+        virtual ~WindowItemDelegate();
 
     public:
         virtual QWindow *window(QObject *obj) const = 0;
 
+        // Property query
         virtual bool isEnabled(QObject *obj) const = 0;
         virtual bool isVisible(QObject *obj) const = 0;
-    };
+        virtual QRect mapGeometryToScene(const QObject *obj) const = 0;
 
-    using WindowItemDelegatePtr = std::shared_ptr<WindowItemDelegate>;
+        // Callbacks
+        virtual bool resetQtGrabbedControl() const;
+
+    private:
+        Q_DISABLE_COPY_MOVE(WindowItemDelegate)
+    };
 
 }
 

--
Gitblit v1.9.1