QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
REventFilter.h
Go to the documentation of this file.
1 
20 #ifndef REVENTFILTER_H
21 #define REVENTFILTER_H
22 
23 #include "gui_global.h"
24 
25 #include <QEvent>
26 #include <QMetaType>
27 #include <QObject>
28 
33 class QCADGUI_EXPORT REventFilter : public QObject {
34  Q_OBJECT
35 
36 public:
37  REventFilter(QEvent::Type type = QEvent::None, bool forward = true);
38 
39 protected:
40  bool eventFilter(QObject *obj, QEvent *event);
41 
42 private:
43  QEvent::Type type;
44  bool forward;
45 };
46 
48 
49 #endif