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()
|
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()
|
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()
|
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