| | |
| | | // 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 "quickitemdelegate_p.h" |
| | | |
| | | #include <QtQuick/QQuickItem> |
| | |
| | | return static_cast<const QQuickWindow *>(host)->flags(); |
| | | } |
| | | |
| | | QRect QuickItemDelegate::getGeometry(const QObject *host) const { |
| | | return static_cast<const QQuickWindow *>(host)->geometry(); |
| | | } |
| | | |
| | | void QuickItemDelegate::setWindowFlags(QObject *host, Qt::WindowFlags flags) const { |
| | | static_cast<QQuickWindow *>(host)->setFlags(flags); |
| | | } |
| | | |
| | | void QuickItemDelegate::setWindowVisible(QObject *host, bool visible) const { |
| | | static_cast<QQuickWindow *>(host)->setVisible(visible); |
| | | } |
| | | |
| | | void QuickItemDelegate::bringWindowToTop(QObject *host) const { |
| | | static_cast<QQuickWindow *>(host)->raise(); |
| | | } |