From a0bede6ff6a700a6eea9702c49d378f07de22f63 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周三, 06 12月 2023 12:11:37 +0800 Subject: [PATCH] Fix title bar hover bug --- src/quick/quickitemdelegate_p.h | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/quick/quickitemdelegate_p.h b/src/quick/quickitemdelegate_p.h index 51463ee..a63aa71 100644 --- a/src/quick/quickitemdelegate_p.h +++ b/src/quick/quickitemdelegate_p.h @@ -15,11 +15,13 @@ ~QuickItemDelegate() override; public: - QWindow *window(QObject *obj) const override; - - bool isEnabled(QObject *obj) const override; - bool isVisible(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; + + QWindow * hostWindow(const QObject *host) const override; + bool isHostSizeFixed(const QObject *host) const override; }; } -- Gitblit v1.9.1