From 0586c98f90866e4bc9f0dfe73aefb0a07c56697e Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周二, 12 12月 2023 15:44:14 +0800 Subject: [PATCH] Add win10 border handler --- 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