diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2011-03-17 05:07:10 +0100 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2011-03-17 05:07:10 +0100 |
commit | 00286a5db286e21a766b6af057052dc5d17561ad (patch) | |
tree | 7232dadf6dc3570705c3104fe0c000f480c7a0ee /busyappfilter.cpp | |
download | acritoxinstaller-00286a5db286e21a766b6af057052dc5d17561ad.zip acritoxinstaller-00286a5db286e21a766b6af057052dc5d17561ad.tar.gz |
Initial commit
Diffstat (limited to 'busyappfilter.cpp')
-rw-r--r-- | busyappfilter.cpp | 23 |
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 ); + } +} |