From 2d2fc799bc698ebf7e7c8bcc394366d0d7bf071b Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周二, 20 2月 2024 18:18:39 +0800 Subject: [PATCH] Partially finish the bug after window close and reshow --- src/widgets/widgetitemdelegate.cpp | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/widgets/widgetitemdelegate.cpp b/src/widgets/widgetitemdelegate.cpp index c81e6fb..e1ff752 100644 --- a/src/widgets/widgetitemdelegate.cpp +++ b/src/widgets/widgetitemdelegate.cpp @@ -92,6 +92,10 @@ return static_cast<const QWidget *>(host)->windowFlags(); } + QRect WidgetItemDelegate::getGeometry(const QObject *host) const { + return static_cast<const QWidget *>(host)->geometry(); + } + void WidgetItemDelegate::setWindowFlags(QObject *host, Qt::WindowFlags flags) const { static_cast<QWidget *>(host)->setWindowFlags(flags); } @@ -100,6 +104,10 @@ static_cast<QWidget *>(host)->setVisible(visible); } + void WidgetItemDelegate::setGeometry(QObject *host, const QRect &rect) { + static_cast<QWidget *>(host)->setGeometry(rect); + } + void WidgetItemDelegate::bringWindowToTop(QObject *host) const { static_cast<QWidget *>(host)->raise(); } -- Gitblit v1.9.1