From 6eb2efea00eb07ce3a6b089b984885ce4a08c9ca Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周五, 29 12月 2023 20:55:09 +0800 Subject: [PATCH] Add WinRegKey support --- src/quick/quickwindowagent_p.h | 29 +++++++++++++++++++++++------ 1 files changed, 23 insertions(+), 6 deletions(-) diff --git a/src/quick/quickwindowagent_p.h b/src/quick/quickwindowagent_p.h index daafb07..c9d5680 100644 --- a/src/quick/quickwindowagent_p.h +++ b/src/quick/quickwindowagent_p.h @@ -1,15 +1,23 @@ #ifndef QUICKWINDOWAGENTPRIVATE_H #define QUICKWINDOWAGENTPRIVATE_H -#include <QWKCore/private/corewindowagent_p.h> +// +// W A R N I N G !!! +// ----------------- +// +// This file is not part of the QWindowKit API. It is used purely as an +// implementation detail. This header file may change from version to +// version without notice, or may even be removed. +// + +#include <QWKCore/qwkconfig.h> +#include <QWKCore/private/windowagentbase_p.h> #include <QWKQuick/quickwindowagent.h> namespace QWK { - class QuickWindowAgentPrivate : public CoreWindowAgentPrivate { - Q_DISABLE_COPY(QuickWindowAgentPrivate) + class QuickWindowAgentPrivate : public WindowAgentBasePrivate { Q_DECLARE_PUBLIC(QuickWindowAgent) - public: QuickWindowAgentPrivate(); ~QuickWindowAgentPrivate() override; @@ -17,9 +25,18 @@ void init(); // Host - QQuickWindow *host{}; + QQuickWindow *hostWindow{}; + +#ifdef Q_OS_MAC + QQuickItem *systemButtonAreaItem{}; + std::unique_ptr<QObject> systemButtonAreaItemHandler; +#endif + +#if defined(Q_OS_WINDOWS) && QWINDOWKIT_CONFIG(ENABLE_WINDOWS_SYSTEM_BORDERS) + void setupWindows10BorderWorkaround(); +#endif }; } -#endif // QUICKWINDOWAGENTPRIVATE_H \ No newline at end of file +#endif // QUICKWINDOWAGENTPRIVATE_H -- Gitblit v1.9.1