From 40d73269371a9e2b142eb2be2bd2f70aff6346d2 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周日, 25 2月 2024 04:13:02 +0800 Subject: [PATCH] Better workaround for win10 top border issue --- 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 3a0a3dd..8fd14e4 100644 --- a/src/quick/quickitemdelegate.cpp +++ b/src/quick/quickitemdelegate.cpp @@ -80,6 +80,10 @@ static_cast<QQuickWindow *>(host)->setVisible(visible); } + void QuickItemDelegate::setGeometry(QObject *host, const QRect &rect) { + static_cast<QQuickWindow *>(host)->setGeometry(rect); + } + void QuickItemDelegate::bringWindowToTop(QObject *host) const { static_cast<QQuickWindow *>(host)->raise(); } -- Gitblit v1.9.1