kjsembed
KJSEmbed::EventProxy Class Reference
Filters events for a QObject and forwards them to a JS handler. More...
#include <eventproxy.h>
Inheritance diagram for KJSEmbed::EventProxy:

Public Member Functions | |
void | addFilter (QEvent::Type t) |
bool | eventFilter (QObject *watched, QEvent *e) |
EventProxy (QObjectBinding *watch, KJS::Interpreter *interpreter) | |
bool | isFiltered (QEvent::Type t) const |
void | removeFilter (QEvent::Type t) |
~EventProxy () | |
Protected Member Functions | |
bool | callHandler (QEvent *e) |
Detailed Description
Filters events for a QObject and forwards them to a JS handler.
Definition at line 44 of file eventproxy.h.
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
void EventProxy::addFilter | ( | QEvent::Type | t | ) |
bool EventProxy::callHandler | ( | QEvent * | e | ) | [protected] |
Definition at line 93 of file eventproxy.cpp.
Reimplemented to forward events to JS.
Reimplemented from QObject.
Definition at line 84 of file eventproxy.cpp.
bool EventProxy::isFiltered | ( | QEvent::Type | t | ) | const |
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.
The documentation for this class was generated from the following files: