KJSEmbed
KJSEmbed::EventProxy Class Reference
#include <eventproxy.h>
Inheritance diagram for KJSEmbed::EventProxy:

Detailed Description
Filters events for a QObject and forwards them to a JS handler.
Definition at line 44 of file eventproxy.h.
Public Member Functions | |
| EventProxy (QObjectBinding *watch, KJS::Interpreter *interpreter) | |
| ~EventProxy () | |
| bool | isFiltered (QEvent::Type t) const |
| void | addFilter (QEvent::Type t) |
| void | removeFilter (QEvent::Type t) |
| bool | eventFilter (QObject *watched, QEvent *e) |
Protected Member Functions | |
| bool | callHandler (QEvent *e) |
Constructor & Destructor Documentation
| EventProxy::EventProxy | ( | QObjectBinding * | watch, | |
| KJS::Interpreter * | interpreter | |||
| ) |
Definition at line 35 of file eventproxy.cpp.
| EventProxy::~EventProxy | ( | ) |
Definition at line 41 of file eventproxy.cpp.
Member Function Documentation
| bool EventProxy::isFiltered | ( | QEvent::Type | t | ) | const |
| void EventProxy::addFilter | ( | QEvent::Type | t | ) |
| void EventProxy::removeFilter | ( | QEvent::Type | t | ) |
Removes an event type from those we forward to JS.
If there are no event types left to forward then we self-destruct.
Definition at line 69 of file eventproxy.cpp.
Reimplemented to forward events to JS.
Reimplemented from QObject.
Definition at line 84 of file eventproxy.cpp.
Definition at line 93 of file eventproxy.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference