summaryrefslogtreecommitdiff
path: root/busyappfilter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'busyappfilter.cpp')
-rw-r--r--busyappfilter.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/busyappfilter.cpp b/busyappfilter.cpp
new file mode 100644
index 0000000..3f14de2
--- /dev/null
+++ b/busyappfilter.cpp
@@ -0,0 +1,23 @@
+#include "busyappfilter.h"
+
+bool BusyAppFilter::eventFilter(QObject *obj, QEvent *event)
+{
+ switch ( event->type() )
+ {
+ case QEvent::KeyPress:
+ case QEvent::KeyRelease:
+ case QEvent::MouseButtonPress:
+ case QEvent::MouseButtonDblClick:
+ case QEvent::MouseMove:
+ case QEvent::HoverEnter:
+ case QEvent::HoverLeave:
+ case QEvent::HoverMove:
+ case QEvent::DragEnter:
+ case QEvent::DragLeave:
+ case QEvent::DragMove:
+ case QEvent::Drop:
+ return true;
+ default:
+ return QObject::eventFilter( obj, event );
+ }
+}