From c9261fbd7019264e8543507e3afaec63d55595a2 Mon Sep 17 00:00:00 2001
From: Yuhang Zhao <zhaoyuhang@rankyee.com>
Date: 周三, 06 12月 2023 10:58:07 +0800
Subject: [PATCH] fix stupid code

---
 src/quick/quickitemdelegate_p.h |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/quick/quickitemdelegate_p.h b/src/quick/quickitemdelegate_p.h
index 658752f..a63aa71 100644
--- a/src/quick/quickitemdelegate_p.h
+++ b/src/quick/quickitemdelegate_p.h
@@ -10,17 +10,18 @@
 namespace QWK {
 
     class QWK_QUICK_EXPORT QuickItemDelegate : public WindowItemDelegate {
-        Q_DISABLE_COPY(QuickItemDelegate)
-
     public:
         QuickItemDelegate();
         ~QuickItemDelegate() override;
 
     public:
-        QWindow *window(QObject *obj) const override;
+        QWindow *window(const QObject *obj) const override;
+        bool isEnabled(const QObject *obj) const override;
+        bool isVisible(const QObject *obj) const override;
+        QRect mapGeometryToScene(const QObject *obj) const override;
 
-        bool isEnabled(QObject *obj) const override;
-        bool isVisible(QObject *obj) const override;
+        QWindow * hostWindow(const QObject *host) const override;
+        bool isHostSizeFixed(const QObject *host) const override;
     };
 
 }

--
Gitblit v1.9.1