te::qt::widgets::SymbolTreeFilter Class Reference

#include <SymbolTreeFilter.h>

Inheritance diagram for te::qt::widgets::SymbolTreeFilter:

Public Member Functions

Initializer Methods

Methods related to instantiation and destruction.

 SymbolTreeFilter (QObject *parent=0)
 It constructs a tool associated with the given map display and with the specified cursor. More...
 
virtual ~SymbolTreeFilter ()
 Destructor. More...
 

AbstractTool Methods

Methods related with tool behavior.

virtual bool eventFilter (QObject *watched, QEvent *e)
 Filters events if this object has been installed as an event filter for the watched object. More...
 
virtual bool drag (QDragEnterEvent *e)
 This event handler can be reimplemented in a concrete tool class to receive mouse press events for the watched object. More...
 
virtual bool drop (QDropEvent *e)
 This event handler can be reimplemented in a concrete tool class to receive mouse press events for the watched object. More...
 
void drag ()
 
void drop ()
 

Detailed Description

Definition at line 43 of file SymbolTreeFilter.h.

Constructor & Destructor Documentation

◆ SymbolTreeFilter()

te::qt::widgets::SymbolTreeFilter::SymbolTreeFilter ( QObject *  parent = 0)

It constructs a tool associated with the given map display and with the specified cursor.

Note
The tool will NOT take the ownership of the given pointers.
If the given cursor is different of Qt::BlankCursor, it will be setted on map display.

◆ ~SymbolTreeFilter()

virtual te::qt::widgets::SymbolTreeFilter::~SymbolTreeFilter ( )
virtual

Destructor.

Member Function Documentation

◆ drag() [1/2]

virtual bool te::qt::widgets::SymbolTreeFilter::drag ( QDragEnterEvent *  e)
virtual

This event handler can be reimplemented in a concrete tool class to receive mouse press events for the watched object.

Parameters
eThe mouse event.
Returns
If you want to filter the event out, i.e. stop it being handled further, return true; otherwise return false.

◆ drag [2/2]

void te::qt::widgets::SymbolTreeFilter::drag ( )
signal

◆ drop() [1/2]

virtual bool te::qt::widgets::SymbolTreeFilter::drop ( QDropEvent *  e)
virtual

This event handler can be reimplemented in a concrete tool class to receive mouse press events for the watched object.

Parameters
eThe mouse event.
Returns
If you want to filter the event out, i.e. stop it being handled further, return true; otherwise return false.

◆ drop [2/2]

void te::qt::widgets::SymbolTreeFilter::drop ( )
signal

◆ eventFilter()

virtual bool te::qt::widgets::SymbolTreeFilter::eventFilter ( QObject *  watched,
QEvent *  e 
)
virtual

Filters events if this object has been installed as an event filter for the watched object.

Parameters
watchedThe watched object.
eventThe last event sent to watched object.
Note
In your reimplementation of this function, if you want to filter the event out, i.e. stop it being handled further, return true; otherwise return false.
Here, the default implementation looks for QMouseEvents and call the pure virutal methods defined on AbstractTool class, e.g. mousePressEvent().

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