From 96833537013e55ee42ef86ea75afca373bdced29 Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: ćšć, 28 12æ 2023 20:23:50 +0800 Subject: [PATCH] add quick mac button API --- src/quick/quickwindowagent.cpp | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/quick/quickwindowagent.cpp b/src/quick/quickwindowagent.cpp index 4e07a3d..20b48b9 100644 --- a/src/quick/quickwindowagent.cpp +++ b/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; @@ -35,7 +43,7 @@ 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; @@ -77,6 +85,9 @@ d->context->setHitTestVisible(item, visible); } + /*! + \internal + */ QuickWindowAgent::QuickWindowAgent(QuickWindowAgentPrivate &d, QObject *parent) : WindowAgentBase(d, parent) { d.init(); -- Gitblit v1.9.1