From 83710cb96187d635be1be95ac1a2652c28d695cd Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周二, 12 12月 2023 00:24:14 +0800 Subject: [PATCH] Add example icon --- 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