Zhao Yuhang
2023-12-15 dddf96c011723a12b11acc2980c10eb370961021
src/core/contexts/abstractwindowcontext_p.h
@@ -5,16 +5,16 @@
#include <memory>
#include <QtCore/QSet>
#include <QtGui/QRegion>
#include <QtGui/QWindow>
#include <QtGui/QPolygon>
#include <QWKCore/windowagentbase.h>
#include <QWKCore/private/eventobserver_p.h>
#include <QWKCore/private/nativeeventfilter_p.h>
#include <QWKCore/private/windowitemdelegate_p.h>
namespace QWK {
    class QWK_CORE_EXPORT AbstractWindowContext : public QObject, public EventDispatcher {
    class QWK_CORE_EXPORT AbstractWindowContext : public QObject, public NativeEventDispatcher {
        Q_OBJECT
    public:
        AbstractWindowContext();
@@ -25,6 +25,7 @@
        inline QObject *host() const;
        inline QWindow *window() const;
        inline WindowItemDelegate *delegate() const;
        inline bool isHitTestVisible(const QObject *obj) const;
        bool setHitTestVisible(const QObject *obj, bool visible);
@@ -79,6 +80,10 @@
        return m_windowHandle;
    }
    inline WindowItemDelegate *AbstractWindowContext::delegate() const {
        return m_delegate.get();
    }
    inline bool AbstractWindowContext::isHitTestVisible(const QObject *obj) const {
        return m_hitTestVisibleItems.contains(obj);
    }