From 03605a234142933dc49f1a6b2fbf49ba007d87f8 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周一, 29 1月 2024 22:10:43 +0800 Subject: [PATCH] Add "setGeometry" to delegate --- 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