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.
23 lines
415 B
C++
23 lines
415 B
C++
#ifndef MYEVENTFILTER_H
|
|
#define MYEVENTFILTER_H
|
|
|
|
#include <QObject>
|
|
#include <QKeyEvent>
|
|
|
|
class MyEventFilter : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MyEventFilter(QEvent::Type filter);
|
|
protected:
|
|
bool eventFilter(QObject *obj, QEvent *event) override;
|
|
|
|
signals:
|
|
void eventHappened(QObject* obj_addr, QEvent& event);
|
|
private:
|
|
QEvent::Type targetEventType;
|
|
};
|
|
|
|
#endif // MYEVENTFILTER_H
|