#include <qcalcGraphicElements.h>
Public Types | |
enum | { Type = TYPE_CLOSEBUTTON } |
Public Member Functions | |
CloseButton (QGraphicsItem *parent) | |
virtual | ~CloseButton () |
CalcItem * | getItem () |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) |
virtual int | type () const |
Protected Member Functions | |
void | hoverEnterEvent (QGraphicsSceneHoverEvent *) |
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *) |
Protected Attributes | |
bool | hasMouseFocus |
CloseButton::CloseButton | ( | QGraphicsItem * | parent | ) |
virtual CloseButton::~CloseButton | ( | ) | [inline, virtual] |
CalcItem* CloseButton::getItem | ( | ) | [inline] |
void CloseButton::hoverEnterEvent | ( | QGraphicsSceneHoverEvent * | ) | [protected] |
void CloseButton::hoverLeaveEvent | ( | QGraphicsSceneHoverEvent * | ) | [protected] |
void CloseButton::paint | ( | QPainter * | painter, | |
const QStyleOptionGraphicsItem * | , | |||
QWidget * | ||||
) | [virtual] |
virtual int CloseButton::type | ( | ) | const [inline, virtual] |
bool CloseButton::hasMouseFocus [protected] |