2014-07-07 19:08:30 +02:00
|
|
|
#ifndef FILTER_H
|
|
|
|
#define FILTER_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
class filter : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
private:
|
2014-07-11 00:18:36 +02:00
|
|
|
bool m_altPressed;
|
2014-07-09 16:18:48 +02:00
|
|
|
bool m_mousePressed;
|
2014-07-07 19:08:30 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
explicit filter(QObject *parent = 0);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
bool eventFilter(QObject *obj, QEvent *ev);
|
|
|
|
|
|
|
|
signals:
|
2014-07-11 00:18:36 +02:00
|
|
|
void altPressed();
|
|
|
|
void altReleased();
|
2014-07-09 16:18:48 +02:00
|
|
|
void sequencePressed(const QVariant &seq);
|
|
|
|
void mousePressed(const QVariant &o, const QVariant &x, const QVariant &y);
|
|
|
|
void mouseReleased(const QVariant &o, const QVariant &x, const QVariant &y);
|
2014-07-07 19:08:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // FILTER_H
|