Sine Striker
2024-02-20 2d2fc799bc698ebf7e7c8bcc394366d0d7bf071b
src/widgets/widgetitemdelegate.cpp
@@ -1,3 +1,7 @@
// Copyright (C) 2023-2024 Stdware Collections (https://www.github.com/stdware)
// Copyright (C) 2021-2023 wangwenx190 (Yuhang Zhao)
// SPDX-License-Identifier: Apache-2.0
#include "widgetitemdelegate_p.h"
#include <QtGui/QMouseEvent>
@@ -88,10 +92,22 @@
        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);
    }
    void WidgetItemDelegate::setWindowVisible(QObject *host, bool visible) const {
        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();
    }