ClickableLabel Class Reference

A special label that allows handling clicks and mouse moves, and forward such notifications to specified handlers. More...

#include <ClickableLabel.h>

Collaboration diagram for ClickableLabel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ClickableLabel (QWidget *parent=NULL)
void setClickHandler (ClickHandler *aHandler)
 Sets the handler for click events.
void setMoveHandler (MoveHandler *aHandler)
 Sets the handler for mouse move events.

Protected Member Functions

virtual void mousePressEvent (QMouseEvent *e)
virtual void mouseMoveEvent (QMouseEvent *e)

Protected Attributes

ClickHandlerhandler
MoveHandlermoveHandler

Detailed Description

A special label that allows handling clicks and mouse moves, and forward such notifications to specified handlers.


Constructor & Destructor Documentation

ClickableLabel::ClickableLabel QWidget *  parent = NULL  )  [inline]
 


Member Function Documentation

void ClickableLabel::mouseMoveEvent QMouseEvent *  e  )  [protected, virtual]
 

void ClickableLabel::mousePressEvent QMouseEvent *  e  )  [protected, virtual]
 

void ClickableLabel::setClickHandler ClickHandler aHandler  )  [inline]
 

Sets the handler for click events.

The previous handler will not get any further notifications.

void ClickableLabel::setMoveHandler MoveHandler aHandler  )  [inline]
 

Sets the handler for mouse move events.

The previous handler will not get any further notifications.


Member Data Documentation

ClickHandler* ClickableLabel::handler [protected]
 

MoveHandler* ClickableLabel::moveHandler [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Jan 23 19:44:59 2006 for Visualization by  doxygen 1.4.6