Loading...
Searching...
No Matches
Inheritance diagram for score::QGraphicsCombo:

Public Member Functions

template<std::size_t N>
 QGraphicsCombo (const std::array< const char *, N > &arr, QGraphicsItem *parent)
 
 QGraphicsCombo (QStringList arr, QGraphicsItem *parent)
 
 QGraphicsCombo (QGraphicsItem *parent)
 
void init ()
 
void setRect (const QRectF &r)
 
void setValue (int v)
 
int value () const
 
QRectF stepperRect () const noexcept
 The strip holding the two stepper buttons, in item coordinates.
 
bool stepperVisible () const noexcept
 Whether there is more than one entry and room to draw the strip.
 
void step (int n)
 Move the selection by n entries, wrapping, and report it as an edit.
 
void setEditable (bool b)
 Whether a value that is not in the list may be entered.
 
bool editable () const noexcept
 
void openEditor (QPointF scenePos)
 Show the drop-down at that position in scene coordinates.
 
void sliderMoved ()
 
void sliderReleased ()
 
void valueEdited (const QString &text)
 Text matching none of the entries; only sent when editable().
 
void contextMenuEvent (QGraphicsSceneContextMenuEvent *event) override
 
void hoverMoveEvent (QGraphicsSceneHoverEvent *event) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
bool sceneEvent (QEvent *event) override
 
QRectF boundingRect () const override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 

Public Attributes

QStringList array
 
bool moving = false
 

Static Public Attributes

static const constexpr double stepperWidth = 12.
 Width of the +/- stepper strip kept free at the right of the box.
 

Friends

struct DefaultComboImpl
 

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