KFormDesigner::EventEater Class Reference
#include <container.h>
Inherits TQObject.
Public Member Functions | |
| EventEater (TQWidget *widget, TQObject *container) | |
| void | setContainer (TQObject *container) |
| bool | eventFilter (TQObject *o, TQEvent *ev) |
Detailed Description
This class is used to filter the events from any widget (and all its subwidgets) and direct it to the Container.
A class for redirecting events
Definition at line 47 of file container.h.
Constructor & Destructor Documentation
◆ EventEater()
| EventEater::EventEater | ( | TQWidget * | widget, |
| TQObject * | container | ||
| ) |
Constructs eater object. All events for widget and it's subwidgets will be redirected to container. container will be also parent of eater object, so you don't need to care about deleting it.
Definition at line 47 of file container.cpp.
◆ ~EventEater()
| EventEater::~EventEater | ( | ) |
Definition at line 83 of file container.cpp.
Member Function Documentation
◆ eventFilter()
| bool EventEater::eventFilter | ( | TQObject * | o, |
| TQEvent * | ev | ||
| ) |
Definition at line 57 of file container.cpp.
◆ setContainer()
|
inline |
Sets the object which will receive the events.
Definition at line 60 of file container.h.
The documentation for this class was generated from the following files:
