Changeset View
Changeset View
Standalone View
Standalone View
touch_hide_cursor_spy.h
Show All 22 Lines | |||||
23 | namespace KWin | 23 | namespace KWin | ||
24 | { | 24 | { | ||
25 | 25 | | |||
26 | class TouchHideCursorSpy : public InputEventSpy | 26 | class TouchHideCursorSpy : public InputEventSpy | ||
27 | { | 27 | { | ||
28 | public: | 28 | public: | ||
29 | void pointerEvent(KWin::MouseEvent *event) override; | 29 | void pointerEvent(KWin::MouseEvent *event) override; | ||
30 | void wheelEvent(KWin::WheelEvent *event) override; | 30 | void wheelEvent(KWin::WheelEvent *event) override; | ||
31 | void touchDown(quint32 id, const QPointF &pos, quint32 time) override; | 31 | void touchDown(qint32 id, const QPointF &pos, quint32 time) override; | ||
32 | 32 | | |||
33 | private: | 33 | private: | ||
34 | void showCursor(); | 34 | void showCursor(); | ||
35 | void hideCursor(); | 35 | void hideCursor(); | ||
36 | 36 | | |||
37 | bool m_cursorHidden = false; | 37 | bool m_cursorHidden = false; | ||
38 | }; | 38 | }; | ||
39 | 39 | | |||
40 | } | 40 | } |