From b1cc4e7de641a9e6ef866744d7775d45813bad8d Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周一, 11 12月 2023 23:47:11 +0800 Subject: [PATCH] clean codes --- src/quick/quickitemdelegate.cpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/quick/quickitemdelegate.cpp b/src/quick/quickitemdelegate.cpp index 7696a4a..8165ff8 100644 --- a/src/quick/quickitemdelegate.cpp +++ b/src/quick/quickitemdelegate.cpp @@ -38,4 +38,8 @@ return false; } + bool QuickItemDelegate::isWindowActive(const QObject *host) const { + return static_cast<QQuickWindow *>(const_cast<QObject *>(host))->isActive(); + } + } \ No newline at end of file -- Gitblit v1.9.1