|
| Button (QGraphicsItem *_parent=0) |
| Constructor. More...
|
|
| Button (const QString &_text, QGraphicsItem *_parent=0) |
| Constructor. More...
|
|
| ~Button () |
| Destructor. More...
|
|
QRectF | boundingRect () const override |
| Bounding rectangle. More...
|
|
void | setGeometry (const QRectF &_rect) override |
| Sets the geometry. More...
|
|
void | paint (QPainter *_painter, const QStyleOptionGraphicsItem *_option, QWidget *_widget=0) override |
| Button glow painting. More...
|
|
void | setBackgroundBrush (QBrush _brush) override |
| Sets the background brush. More...
|
|
void | setBackgroundPen (QPen _pen) override |
| Sets the background pen. More...
|
|
| Text (QGraphicsItem *_parent=0) |
| Constructor. More...
|
|
| Text (const QString &_text, QGraphicsItem *_parent=0) |
| Constructor. More...
|
|
| ~Text () |
| Destrucotr. More...
|
|
virtual void | setGeometry (const QRectF &_rect) |
| Sets the geometry. More...
|
|
QPainterPath | shape () const |
| Returns the shape for proper repainting/event handling. More...
|
|
virtual void | paint (QPainter *_painter, const QStyleOptionGraphicsItem *_option, QWidget *_widget=0) |
| Background painting. More...
|
|
virtual QRectF | boundingRect () const |
| Bounding rectangle. More...
|
|
QBrush | backgroundBrush () |
| Returns the current background brush. More...
|
|
virtual void | setBackgroundBrush (QBrush _brush) |
| Sets the background brush. More...
|
|
QPen | backgroundPen () |
| Returns the current background pen. More...
|
|
virtual void | setBackgroundPen (QPen _pen) |
| Sets the background pen. More...
|
|
void | setBackground (bool _leftOut, bool _rightOut) |
| Enables background painting. More...
|
|
void | clearBackground () |
| Disables backgorund painting. More...
|
|
void | setHorizontalStretch (bool _stretch) |
| Should this widget be stretchable in horizontal direction. More...
|
|
void | setAlignment (Qt::Alignment _alignment) |
| Placement of the text in a stretched widget. More...
|
|
void | setText (QString _text) |
| Set displayed text. More...
|
|
QString | text () |
| Get displayed text. More...
|
|