From 3cfe15a9c3db0993d8b8fef5d148625840e5a75c Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周二, 05 12月 2023 15:43:39 +0800 Subject: [PATCH] Add host interface --- src/quick/quickitemdelegate_p.h | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/quick/quickitemdelegate_p.h b/src/quick/quickitemdelegate_p.h index 658752f..b8bd84d 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; - bool isEnabled(QObject *obj) const override; bool isVisible(QObject *obj) const override; + QRect mapGeometryToScene(const QObject *obj) const override; + + QWindow * hostWindow(QObject *host) const override; + bool isHostSizeFixed(QObject *host) const override; }; } -- Gitblit v1.9.1