| | |
| | | return static_cast<QQuickWindow *>(const_cast<QObject *>(host)); |
| | | } |
| | | |
| | | bool QuickItemDelegate::isHostSizeFixed(const QObject *host) const { |
| | | const auto window = static_cast<const QQuickWindow *>(host); |
| | | const auto minSize = window->minimumSize(); |
| | | const auto maxSize = window->maximumSize(); |
| | | return !minSize.isEmpty() && !maxSize.isEmpty() && minSize == maxSize; |
| | | } |
| | | |
| | | bool QuickItemDelegate::isWindowActive(const QObject *host) const { |
| | | return static_cast<const QQuickWindow *>(host)->isActive(); |
| | | } |
| | |
| | | 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(); |
| | | } |