Sine Striker
2023-12-05 f8975a7d449bac21a2fdbc1a8ca85d1f5b99b362
src/core/contexts/abstractwindowcontext_p.h
@@ -2,6 +2,7 @@
#define ABSTRACTWINDOWCONTEXT_P_H
#include <array>
#include <memory>
#include <QtCore/QSet>
#include <QtGui/QWindow>
@@ -15,9 +16,7 @@
    class QWK_CORE_EXPORT AbstractWindowContext : public QObject {
        Q_OBJECT
    public:
        inline AbstractWindowContext(QWindow *window, WindowItemDelegate *delegate)
            : m_windowHandle(window), m_delegate(delegate) {
        }
        AbstractWindowContext(QWindow *window, WindowItemDelegate *delegate);
        ~AbstractWindowContext() override;
    public:
@@ -39,10 +38,12 @@
        void showSystemMenu(const QPoint &pos);
        QRegion hitTestShape() const;
        bool isInSystemButtons(const QPoint &pos, CoreWindowAgent::SystemButton *button) const;
        bool isInTitleBarDraggableArea(const QPoint &pos) const;
    protected:
        QWindow *m_windowHandle;
        WindowItemDelegate *m_delegate;
        std::unique_ptr<WindowItemDelegate> m_delegate;
        QSet<QObject *> m_hitTestVisibleItems;
        QList<QRect> m_hitTestVisibleRects;