WD
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
WDEventDispatcher Class Reference

#include <wd_event_dispatcher.h>

Public Member Functions

void add (EventDispatcher *dispatcher)
 
QVector< EventDispatcher * > & getDispatchers ()
 
bool dispatch (QEvent *event)
 

Static Public Member Functions

static WDEventDispatchergetInstance ()
 

Detailed Description

This class contains dispathers chain.

Member Function Documentation

void WDEventDispatcher::add ( EventDispatcher dispatcher)

Add dispatcher item to dispatchers chain

Parameters
dispatcher- pointer to new dispatcher instance
bool WDEventDispatcher::dispatch ( QEvent *  event)

Method dispatch event

Parameters
event- event for dispatching
Returns
true if event was consumed, else false
QVector<EventDispatcher*>& WDEventDispatcher::getDispatchers ( )

Return container with dispatcher chain

Returns
QVector with EventDispatcher pointers
static WDEventDispatcher* WDEventDispatcher::getInstance ( )
static

Method returns WDEventDispatcher instance

Returns
WDEventDispatcher pointer

The documentation for this class was generated from the following file: