| | |
| | | #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(); |
| | |
| | | |
| | | 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); |
| | |
| | | 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); |
| | | } |