54 #include <QGraphicsItem> 55 #include <QGraphicsLayoutItem> 80 Button (QGraphicsItem *_parent = 0);
81 Button (
const QString &_text, QGraphicsItem *_parent = 0);
93 void paint (QPainter *_painter,
const QStyleOptionGraphicsItem *_option, QWidget *_widget = 0);
108 virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *_event);
109 virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *_event);
112 virtual void mousePressEvent (QGraphicsSceneMouseEvent *_event);
113 virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *_event);
116 QBrush backgroundBrush_;
void paint(QPainter *_painter, const QStyleOptionGraphicsItem *_option, QWidget *_widget=0)
Button glow painting.
void pressed()
emmited if the button gets pressed
QRectF boundingRect() const
Bounding rectangle.
void setGeometry(const QRectF &_rect)
Sets the geometry.
void setBackgroundBrush(QBrush _brush)
Sets the background brush.
Button(QGraphicsItem *_parent=0)
Constructor.
void setBackgroundPen(QPen _pen)
Sets the background pen.