#include <Plugin-VSI/scene/button.hh>
|
|
void | pressed () |
| | emmited if the button gets pressed
|
| |
|
| | Button (QGraphicsItem *_parent=0) |
| | Constructor.
|
| |
| | Button (const QString &_text, QGraphicsItem *_parent=0) |
| | Constructor.
|
| |
| | ~Button () |
| | Destructor.
|
| |
| QRectF | boundingRect () const override |
| | Bounding rectangle.
|
| |
| void | setGeometry (const QRectF &_rect) override |
| | Sets the geometry.
|
| |
| void | paint (QPainter *_painter, const QStyleOptionGraphicsItem *_option, QWidget *_widget=0) override |
| | Button glow painting.
|
| |
| void | setBackgroundBrush (QBrush _brush) override |
| | Sets the background brush.
|
| |
| void | setBackgroundPen (QPen _pen) override |
| | Sets the background pen.
|
| |
| | Text (QGraphicsItem *_parent=0) |
| | Constructor.
|
| |
| | Text (const QString &_text, QGraphicsItem *_parent=0) |
| | Constructor.
|
| |
| | ~Text () |
| | Destrucotr.
|
| |
| QPainterPath | shape () const |
| | Returns the shape for proper repainting/event handling.
|
| |
| QBrush | backgroundBrush () |
| | Returns the current background brush.
|
| |
| QPen | backgroundPen () |
| | Returns the current background pen.
|
| |
| void | setBackground (bool _leftOut, bool _rightOut) |
| | Enables background painting.
|
| |
| void | clearBackground () |
| | Disables backgorund painting.
|
| |
| void | setHorizontalStretch (bool _stretch) |
| | Should this widget be stretchable in horizontal direction.
|
| |
| void | setAlignment (Qt::Alignment _alignment) |
| | Placement of the text in a stretched widget.
|
| |
| void | setText (QString _text) |
| | Set displayed text.
|
| |
| QString | text () |
| | Get displayed text.
|
| |
|
| virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *_event) override |
| |
| virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *_event) override |
| |
| virtual void | mousePressEvent (QGraphicsSceneMouseEvent *_event) override |
| |
| virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *_event) override |
| |
| virtual QSizeF | sizeHint (Qt::SizeHint _which, const QSizeF &_constraint=QSizeF()) const |
| |
Widgets that represents a clickable button based on VSI::Text
Definition at line 67 of file button.hh.
◆ Button() [1/2]
| VSI::Button::Button |
( |
QGraphicsItem * |
_parent = 0 | ) |
|
|
explicit |
◆ Button() [2/2]
| VSI::Button::Button |
( |
const QString & |
_text, |
|
|
QGraphicsItem * |
_parent = 0 |
|
) |
| |
◆ ~Button()
◆ boundingRect()
| QRectF VSI::Button::boundingRect |
( |
| ) |
const |
|
overridevirtual |
◆ hoverEnterEvent()
| void VSI::Button::hoverEnterEvent |
( |
QGraphicsSceneHoverEvent * |
_event | ) |
|
|
overrideprotectedvirtual |
◆ hoverLeaveEvent()
| void VSI::Button::hoverLeaveEvent |
( |
QGraphicsSceneHoverEvent * |
_event | ) |
|
|
overrideprotectedvirtual |
◆ mousePressEvent()
| void VSI::Button::mousePressEvent |
( |
QGraphicsSceneMouseEvent * |
_event | ) |
|
|
overrideprotectedvirtual |
◆ mouseReleaseEvent()
| void VSI::Button::mouseReleaseEvent |
( |
QGraphicsSceneMouseEvent * |
_event | ) |
|
|
overrideprotectedvirtual |
◆ paint()
| void VSI::Button::paint |
( |
QPainter * |
_painter, |
|
|
const QStyleOptionGraphicsItem * |
_option, |
|
|
QWidget * |
_widget = 0 |
|
) |
| |
|
overridevirtual |
◆ setBackgroundBrush()
| void VSI::Button::setBackgroundBrush |
( |
QBrush |
_brush | ) |
|
|
overridevirtual |
◆ setBackgroundPen()
| void VSI::Button::setBackgroundPen |
( |
QPen |
_pen | ) |
|
|
overridevirtual |
◆ setGeometry()
| void VSI::Button::setGeometry |
( |
const QRectF & |
_rect | ) |
|
|
overridevirtual |
◆ backgroundBrush_
| QBrush VSI::Button::backgroundBrush_ |
|
private |
◆ backgroundPen_
| QPen VSI::Button::backgroundPen_ |
|
private |
◆ glow_
The documentation for this class was generated from the following files: