From 4df5d723cb3ef9d0f4b1d2f908af2dedce03cf0a Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: 周一, 14 4月 2025 11:40:13 +0800 Subject: [PATCH] update qmsetup --- src/widgets/widgetitemdelegate.cpp | 15 --------------- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/src/widgets/widgetitemdelegate.cpp b/src/widgets/widgetitemdelegate.cpp index 6980175..b1b7f6c 100644 --- a/src/widgets/widgetitemdelegate.cpp +++ b/src/widgets/widgetitemdelegate.cpp @@ -64,21 +64,6 @@ return static_cast<const QWidget *>(host)->windowHandle(); } - bool WidgetItemDelegate::isHostSizeFixed(const QObject *host) const { - const auto widget = static_cast<const QWidget *>(host); - // "Qt::MSWindowsFixedSizeDialogHint" is used cross-platform actually. - if (widget->windowFlags() & Qt::MSWindowsFixedSizeDialogHint) { - return true; - } - // Caused by setFixedWidth/Height/Size(). - const QSize minSize = widget->minimumSize(); - const QSize maxSize = widget->maximumSize(); - if (!minSize.isEmpty() && !maxSize.isEmpty() && (minSize == maxSize)) { - return true; - } - return false; - } - bool WidgetItemDelegate::isWindowActive(const QObject *host) const { return static_cast<const QWidget *>(host)->isActiveWindow(); } -- Gitblit v1.9.1