From 364f4aec17e88adb5a0f3faad28176fc7cb89c74 Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: ćšć, 14 12æ 2023 20:06:49 +0800 Subject: [PATCH] macos cleanup --- src/quick/quickitemdelegate.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/quick/quickitemdelegate.cpp b/src/quick/quickitemdelegate.cpp index 4c9b565..7bd1259 100644 --- a/src/quick/quickitemdelegate.cpp +++ b/src/quick/quickitemdelegate.cpp @@ -10,7 +10,7 @@ QuickItemDelegate::~QuickItemDelegate() = default; - QWindow *QuickItemDelegate::window(const QObject *obj) const { + QWindow *QuickItemDelegate::window(QObject *obj) const { return static_cast<const QQuickItem *>(obj)->window(); } @@ -29,8 +29,8 @@ return QRectF(originPoint, size).toRect(); } - QWindow *QuickItemDelegate::hostWindow(const QObject *host) const { - return static_cast<QQuickWindow *>(const_cast<QObject *>(host)); + QWindow *QuickItemDelegate::hostWindow(QObject *host) const { + return static_cast<QQuickWindow *>(host); } bool QuickItemDelegate::isHostSizeFixed(const QObject *host) const { -- Gitblit v1.9.1