Sine Striker
2023-12-29 6eb2efea00eb07ce3a6b089b984885ce4a08c9ca
src/quick/quickwindowagent.cpp
@@ -8,6 +8,14 @@
namespace QWK {
    /*!
        \class QuickWindowAgent
        \brief QuickWindowAgent is the window agent for QtQuick.
        It provides interfaces for QtQuick and processes some Qt events related to the QQuickItem
        instance. The usage of all APIs is consistent with the \a Widgets module.
    */
    QuickWindowAgentPrivate::QuickWindowAgentPrivate() = default;
    QuickWindowAgentPrivate::~QuickWindowAgentPrivate() = default;
@@ -32,12 +40,10 @@
            return false;
        }
        if (!d->setup(window, new QuickItemDelegate())) {
            return false;
        }
        d->setup(window, new QuickItemDelegate());
        d->hostWindow = window;
#ifdef Q_OS_WINDOWS
#if defined(Q_OS_WINDOWS) && QWINDOWKIT_CONFIG(ENABLE_WINDOWS_SYSTEM_BORDERS)
        d->setupWindows10BorderWorkaround();
#endif
        return true;
@@ -53,6 +59,9 @@
        if (!d->context->setTitleBar(item)) {
            return;
        }
#ifdef Q_OS_MAC
        setSystemButtonArea(nullptr);
#endif
        Q_EMIT titleBarWidgetChanged(item);
    }
@@ -79,6 +88,9 @@
        d->context->setHitTestVisible(item, visible);
    }
    /*!
        \internal
    */
    QuickWindowAgent::QuickWindowAgent(QuickWindowAgentPrivate &d, QObject *parent)
        : WindowAgentBase(d, parent) {
        d.init();