Loading...
Searching...
No Matches

Table row selected by a press on its background or controls. More...

Inheritance diagram for score::GraphicsSelectableRow:
score::GraphicsHBoxLayout score::GraphicsLayout score::BackgroundItem score::ResizeableItem

Detailed Description

Table row selected by a press on its background or controls.

Public Member Functions

 GraphicsSelectableRow (QGraphicsItem *parent)
 
void activate ()
 
void setSelected (bool selected)
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
- Public Member Functions inherited from score::GraphicsHBoxLayout
void layout () override
 
void centerContent () override
 
 GraphicsLayout (QGraphicsItem *parent)
 
- Public Member Functions inherited from score::GraphicsLayout
 GraphicsLayout (QGraphicsItem *parent)
 
void setBrush (score::BrushSet &b)
 
void setBackground (const QString &b)
 
bool hasBackground () const noexcept
 Whether the layout paints a box of its own.
 
void setMargin (qreal m)
 
void setPadding (qreal p)
 
void setSpacing (qreal s)
 Gap between box layout children. Default: 2 * padding.
 
qreal spacing () const noexcept
 
void updateChildrenRects (const QList< QGraphicsItem * > &)
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
- Public Member Functions inherited from score::BackgroundItem
 BackgroundItem (QGraphicsItem *parent)
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
void setRect (const QRectF &r)
 
const QRectF & rect () const noexcept
 
QRectF boundingRect () const final override
 
void fitChildrenRect ()
 
int type () const override
 
- Public Member Functions inherited from score::ResizeableItem
 ResizeableItem (QGraphicsItem *parent)
 
void sizeChanged (QSizeF sz)
 
void childrenSizeChanged ()
 
double minimumHeight () const noexcept
 
void setMinimumHeight (double w)
 
void minimumHeightChanged (double w)
 
double minimumWidth () const noexcept
 
void setMinimumWidth (double w)
 
void minimumWidthChanged (double w)
 
int type () const override
 

Public Attributes

std::function< void()> onActivated
 

Protected Member Functions

bool sceneEventFilter (QGraphicsItem *watched, QEvent *event) override
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 

Additional Inherited Members

- Public Types inherited from score::BackgroundItem
enum  { Type = UserType + 80003 }
 
- Public Types inherited from score::ResizeableItem
enum  { Type = UserType + 80000 }
 
- Protected Attributes inherited from score::GraphicsLayout
score::BrushSet * m_bg {}
 
QPixmap * m_pix {}
 
qreal m_margin {}
 
qreal m_padding {}
 
qreal m_spacing {-1.}
 
- Protected Attributes inherited from score::ResizeableItem
double m_minimumHeight {}
 
double m_minimumWidth {}
 

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