Loading...
Searching...
No Matches
score::DefaultComboImpl Struct Reference

Static Public Member Functions

static bool draggable (const QGraphicsCombo &self) noexcept
 
static int positionToIndex (const QGraphicsCombo &self, double v) noexcept
 
static bool passedDragThreshold (QGraphicsSceneMouseEvent *event) noexcept
 
static int stepAt (const QGraphicsCombo &self, QPointF pos) noexcept
 
static void mousePressEvent (QGraphicsCombo &self, QGraphicsSceneMouseEvent *event)
 
static void mouseMoveEvent (QGraphicsCombo &self, QGraphicsSceneMouseEvent *event)
 
static void mouseReleaseEvent (QGraphicsCombo &self, QGraphicsSceneMouseEvent *event)
 
static void ungrabMouseEvent (QGraphicsCombo &self, QEvent *event)
 

Member Function Documentation

◆ passedDragThreshold()

static bool score::DefaultComboImpl::passedDragThreshold ( QGraphicsSceneMouseEvent *  event)
inlinestaticnoexcept

Has the pointer travelled far enough since the press to mean "scrub" rather than "click"? Below the platform's drag threshold a wobble of a pixel or two is a click, and must not nudge the value.

◆ stepAt()

static int score::DefaultComboImpl::stepAt ( const QGraphicsCombo &  self,
QPointF  pos 
)
inlinestaticnoexcept

+1 for the upper half of the stepper strip, -1 for the lower half, 0 if the point is not on the strip at all.

◆ ungrabMouseEvent()

static void score::DefaultComboImpl::ungrabMouseEvent ( QGraphicsCombo &  self,
QEvent *  event 
)
inlinestatic

QEvent::UngrabMouse: the scene took the implicit grab away and there will be no release to end the drag on. See DefaultGraphicsSliderImpl for what goes wrong if the edit is left open.


The documentation for this struct was generated from the following file:
  • QGraphicsCombo.cpp