mirror of https://github.com/wh201906/Proxmark3GUI
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
308 B
C++
14 lines
308 B
C++
#include "myeventfilter.h"
|
|
|
|
MyEventFilter::MyEventFilter(QEvent::Type filter)
|
|
{
|
|
targetEventType = filter;
|
|
}
|
|
|
|
bool MyEventFilter::eventFilter(QObject *obj, QEvent *event)
|
|
{
|
|
if(event->type() == targetEventType)
|
|
emit eventHappened(obj, *event);
|
|
return QObject::eventFilter(obj, event);
|
|
}
|