17 #ifndef PRESSED_OUTSIDE_NOTIFIER_H
18 #define PRESSED_OUTSIDE_NOTIFIER_H
22 #include <QQuickWindow>
26 #include "UbuntuGesturesGlobal.h"
33 class UBUNTUGESTURES_EXPORT PressedOutsideNotifier :
public QQuickItem {
37 PressedOutsideNotifier(QQuickItem * parent =
nullptr);
40 bool eventFilter(QObject *watched, QEvent *event)
override;
43 void pressedOutside();
46 void itemChange(ItemChange change,
const ItemChangeData &value)
override;
49 void setupOrTearDownEventFiltering();
52 void setupEventFiltering();
53 void tearDownEventFiltering();
54 void processFilteredTouchBegin(QTouchEvent *event);
56 QPointer<QQuickWindow> m_filteredWindow;
59 QTimer m_signalEmissionTimer;
62 #endif // PRESSED_OUTSIDE_NOTIFIER_H