From 6b60869385137ec71e7bb91db76016f45eb711e1 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <zhaoyuhang@rankyee.com> Date: 周三, 06 12月 2023 10:09:42 +0800 Subject: [PATCH] port more implementation --- src/core/windowitemdelegate.h | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/core/windowitemdelegate.h b/src/core/windowitemdelegate.h index 5794851..498216d 100644 --- a/src/core/windowitemdelegate.h +++ b/src/core/windowitemdelegate.h @@ -15,13 +15,16 @@ virtual ~WindowItemDelegate(); public: + // Item property query 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; + // Host property query + virtual QWindow *hostWindow(QObject *host) const = 0; + virtual bool isHostSizeFixed(QObject *host) const = 0; + // Callbacks virtual bool resetQtGrabbedControl() const; -- Gitblit v1.9.1