Scenario::ClickableLabelItem Class Referencefinal
Inheritance diagram for Scenario::ClickableLabelItem:
score::SimpleTextItem

Public Types

using ClickHandler = std::function< void(ClickableLabelItem *)>
 

Public Member Functions

 ClickableLabelItem (score::ModelMetadata &interval, ClickHandler &&onClick, const QString &text, QGraphicsItem *parent)
 
int index () const
 
void setIndex (int index)
 
void textChanged ()
 
- Public Member Functions inherited from score::SimpleTextItem
 SimpleTextItem (const score::BrushSet &col, QGraphicsItem *)
 
QRectF boundingRect () const final override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) final override
 
void setFont (const QFont &f)
 
void setText (const QString &s)
 
void setText (std::string_view s)
 
void setColor (const score::BrushSet &c)
 
const QString & text () const noexcept
 

Protected Member Functions

void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 

The documentation for this class was generated from the following files: