QCAD
Open Source 2D CAD
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* e);
41 
42 private:
43  QEvent::Type type;
44  bool forward;
45 };
46 
48 
49 #endif
REventFilter::forward
bool forward
Definition: REventFilter.h:44
gui_global.h
REventFilter::type
QEvent::Type type
Definition: REventFilter.h:43
REventFilter
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: REventFilter.h:33
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(RMath *)
QCADGUI_EXPORT
#define QCADGUI_EXPORT
Definition: gui_global.h:10