#include <GraphicsItems.hpp>
|
QRectF | boundingRect () const override |
|
| ButtonItem (const QPixmap &image, const QPixmap &downImage, const QPixmap &hoverImage, QGraphicsItem *parent=nullptr) |
|
virtual | ~ButtonItem () |
|
|
void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
|
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
|
void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
|
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
|
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option,*widget=nullptr) override |
|
openstudio::ButtonItem::ButtonItem |
( |
const QPixmap & |
image, |
|
|
const QPixmap & |
downImage, |
|
|
const QPixmap & |
hoverImage, |
|
|
QGraphicsItem * |
parent = nullptr |
|
) |
| |
virtual openstudio::ButtonItem::~ButtonItem |
( |
| ) |
|
|
inlinevirtual |
QRectF openstudio::ButtonItem::boundingRect |
( |
| ) |
const |
|
override |
void openstudio::ButtonItem::hoverEnterEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
overrideprotected |
void openstudio::ButtonItem::hoverLeaveEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
overrideprotected |
void openstudio::ButtonItem::mouseClicked |
( |
| ) |
|
|
signal |
void openstudio::ButtonItem::mousePressEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
overrideprotected |
void openstudio::ButtonItem::mouseReleaseEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
overrideprotected |
void openstudio::ButtonItem::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
* |
widget = nullptr |
|
) |
| |
|
overrideprotected |