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

#include <graphicstextbuttonitem.h>

Inheritance diagram for GraphicsTextButtonItem:
QGraphicsSimpleTextItem

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

QBrush _normalBrush
 
GraphicsButtonReceiver_receiver
 
QBrush _rolloverBrush
 

Constructor & Destructor Documentation

◆ GraphicsTextButtonItem() [1/2]

GraphicsTextButtonItem::GraphicsTextButtonItem ( QGraphicsItem *  parent = 0)

◆ GraphicsTextButtonItem() [2/2]

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

◆ ~GraphicsTextButtonItem()

GraphicsTextButtonItem::~GraphicsTextButtonItem ( )

Member Function Documentation

◆ hoverEnterEvent()

void GraphicsTextButtonItem::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
protected

◆ hoverLeaveEvent()

void GraphicsTextButtonItem::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
protected

◆ mouseDoubleClickEvent()

void GraphicsTextButtonItem::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  event)
protected

◆ mousePressEvent()

void GraphicsTextButtonItem::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
protected

◆ mouseReleaseEvent()

void GraphicsTextButtonItem::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
protected

◆ rolloverBrush()

QBrush GraphicsTextButtonItem::rolloverBrush ( ) const

◆ setReceiver()

void GraphicsTextButtonItem::setReceiver ( GraphicsButtonReceiver receiver)

◆ setRolloverBrush()

void GraphicsTextButtonItem::setRolloverBrush ( const QBrush &  rollover)

Member Data Documentation

◆ _normalBrush

QBrush GraphicsTextButtonItem::_normalBrush
protected

◆ _receiver

GraphicsButtonReceiver* GraphicsTextButtonItem::_receiver
protected

◆ _rolloverBrush

QBrush GraphicsTextButtonItem::_rolloverBrush
protected

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

Generated on Fri Apr 9 2021 xTuple ERP Programmer Reference, Version 5.1.0 doxygen 1.8.17