From a51b5688e1c33d3ce96b48c869603b00f908f513 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周三, 13 12月 2023 04:16:37 +0800 Subject: [PATCH] Make better code structure for border handlers --- src/quick/quickitemdelegate.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/quick/quickitemdelegate.cpp b/src/quick/quickitemdelegate.cpp index 8165ff8..4c9b565 100644 --- a/src/quick/quickitemdelegate.cpp +++ b/src/quick/quickitemdelegate.cpp @@ -39,7 +39,7 @@ } bool QuickItemDelegate::isWindowActive(const QObject *host) const { - return static_cast<QQuickWindow *>(const_cast<QObject *>(host))->isActive(); + return static_cast<const QQuickWindow *>(host)->isActive(); } } \ No newline at end of file -- Gitblit v1.9.1