equal
deleted
inserted
replaced
|
1 #ifndef GLXMAINWINDOWEVENTFILTER_H |
|
2 #define GLXMAINWINDOWEVENTFILTER_H |
|
3 #include <QObject> |
|
4 #include <QEvent> |
|
5 class GlxMainWindowEventFilter : public QObject { |
|
6 Q_OBJECT |
|
7 public: |
|
8 |
|
9 GlxMainWindowEventFilter() {} |
|
10 virtual bool eventFilter(QObject *o, QEvent *e) { |
|
11 Q_UNUSED(o); |
|
12 switch(e->type()) { |
|
13 case QEvent::TouchBegin: |
|
14 case QEvent::TouchUpdate: |
|
15 case QEvent::TouchEnd: |
|
16 e->accept(); |
|
17 return true; |
|
18 default: |
|
19 break; |
|
20 } |
|
21 return false; |
|
22 } |
|
23 |
|
24 }; |
|
25 |
|
26 #endif |