List of all members | Public Member Functions | Protected Attributes | Protected Member Functions
GraphicsTextButtonItem Class Reference

#include <graphicstextbuttonitem.h>

Public Member Functions

 GraphicsTextButtonItem (QGraphicsItem *parent=0)
 
 GraphicsTextButtonItem (const QString &text, QGraphicsItem *parent=0)
 
 ~GraphicsTextButtonItem ()
 
QBrush rolloverBrush () const
 
void setReceiver (GraphicsButtonReceiver *receiver)
 
void setRolloverBrush (const QBrush &rollover)
 

Protected Attributes

QBrush _normalBrush
 
GraphicsButtonReceiver_receiver
 
QBrush _rolloverBrush
 

Protected Member Functions

void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
 
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event)
 
void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 

Constructor & Destructor Documentation

GraphicsTextButtonItem::GraphicsTextButtonItem ( QGraphicsItem *  parent = 0)
GraphicsTextButtonItem::GraphicsTextButtonItem ( const QString &  text,
QGraphicsItem *  parent = 0 
)
GraphicsTextButtonItem::~GraphicsTextButtonItem ( )

Member Function Documentation

void GraphicsTextButtonItem::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
protected
void GraphicsTextButtonItem::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
protected
void GraphicsTextButtonItem::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  event)
protected
void GraphicsTextButtonItem::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
protected
void GraphicsTextButtonItem::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
protected
QBrush GraphicsTextButtonItem::rolloverBrush ( ) const
void GraphicsTextButtonItem::setReceiver ( GraphicsButtonReceiver receiver)
void GraphicsTextButtonItem::setRolloverBrush ( const QBrush &  rollover)

Member Data Documentation

QBrush GraphicsTextButtonItem::_normalBrush
protected
GraphicsButtonReceiver* GraphicsTextButtonItem::_receiver
protected
QBrush GraphicsTextButtonItem::_rolloverBrush
protected

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

Generated on Fri Oct 7 2016 14:23:30 xTuple ERP Programmer Reference, Version 4.2.0 doxygen 1.8.10