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_;
QRectF boundingRect() const
Bounding rectangle.
void setBackgroundPen(QPen _pen)
Sets the background pen.
void setGeometry(const QRectF &_rect)
Sets the geometry.
void paint(QPainter *_painter, const QStyleOptionGraphicsItem *_option, QWidget *_widget=0)
Button glow painting.
Button(QGraphicsItem *_parent=0)
Constructor.
void pressed()
emmited if the button gets pressed
void setBackgroundBrush(QBrush _brush)
Sets the background brush.