29 Q_DECLARE_PRIVATE(QWaylandMouseTracker)
30 Q_PROPERTY(qreal mouseX READ mouseX NOTIFY mouseXChanged)
31 Q_PROPERTY(qreal mouseY READ mouseY NOTIFY mouseYChanged)
32 Q_PROPERTY(
bool containsMouse READ hovered NOTIFY hoveredChanged)
34 Q_PROPERTY(
bool windowSystemCursorEnabled READ windowSystemCursorEnabled WRITE setWindowSystemCursorEnabled NOTIFY windowSystemCursorEnabledChanged)
35 QML_NAMED_ELEMENT(WaylandMouseTracker)
36 QML_ADDED_IN_VERSION(1, 0)
38 QWaylandMouseTracker(QQuickItem *parent =
nullptr);
43 void setWindowSystemCursorEnabled(
bool enable);
44 bool windowSystemCursorEnabled()
const;
50 void windowSystemCursorEnabledChanged();
51 void hoveredChanged();
54 bool childMouseEventFilter(QQuickItem *item, QEvent *event) override;
55 void mouseMoveEvent(QMouseEvent *event) override;
56 void hoverMoveEvent(QHoverEvent *event) override;
57 void hoverEnterEvent(QHoverEvent *event) override;
58 void hoverLeaveEvent(QHoverEvent *event) override;