4 #ifndef pqKeyEventFilter_h 5 #define pqKeyEventFilter_h 13 #include <QSharedPointer> 29 typedef QObject Superclass;
50 void filter(QObject* monitored);
57 void forwardTypes(QObject* monitored, QList<int> types);
58 void forwardType(QObject* monitored,
int type);
72 void textChanged(
int key);
78 void accepted(
bool modified);
102 bool eventFilter(QObject* obj, QEvent* event)
override;
105 bool isAcceptType(
int key);
106 bool isRejectType(
int key);
107 bool isTextUpdateType(QChar key);
108 bool isMotionType(
int key);
109 bool isFocusType(
int key);
111 bool shouldHandle(QObject* obj,
int type);
113 QMap<QObject*, QList<int>> ForwardTypes;
114 QList<QObject*> Monitored;
116 QSharedPointer<QKeyEvent> LastEvent;
: A class to handle QKeyEvent in an eventFilter and send high level signals.
KeyCategory
An enum for the key events categories.