QWindowKit  1.5.1.0
Cross-platform window customization framework
Loading...
Searching...
No Matches
widgetwindowagent_p.h
1// Copyright (C) 2023-present Stdware Collections (https://www.github.com/stdware)
2// Copyright (C) 2021-2023 wangwenx190 (Yuhang Zhao)
3// SPDX-License-Identifier: Apache-2.0
4
5#ifndef WIDGETWINDOWAGENTPRIVATE_H
6#define WIDGETWINDOWAGENTPRIVATE_H
7
8//
9// W A R N I N G !!!
10// -----------------
11//
12// This file is not part of the QWindowKit API. It is used purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or may even be removed.
15//
16
17#include <QWKCore/qwkconfig.h>
18#include <QWKCore/private/windowagentbase_p.h>
19#include <QWKWidgets/widgetwindowagent.h>
20
21namespace QWK {
22
23 class WidgetWindowAgentPrivate : public WindowAgentBasePrivate {
24 Q_DECLARE_PUBLIC(WidgetWindowAgent)
25 public:
26 WidgetWindowAgentPrivate();
27 ~WidgetWindowAgentPrivate();
28
29 void init();
30
31 // Host
32 QWidget *hostWidget{};
33
34#ifdef Q_OS_MAC
35 QWidget *systemButtonAreaWidget{};
36 std::unique_ptr<QObject> systemButtonAreaWidgetEventFilter;
37#endif
38
39#if defined(Q_OS_WINDOWS) && QWINDOWKIT_CONFIG(ENABLE_WINDOWS_SYSTEM_BORDERS)
40 void setupWindows10BorderWorkaround();
41 std::unique_ptr<QObject> borderHandler;
42#endif
43 };
44
45}
46
47#endif // WIDGETWINDOWAGENTPRIVATE_H
QWindowKit namespace.
Definition abstractwindowcontext.cpp:13