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

Static Public Member Functions

template<typename T >
static void paint (T &self, const score::Skin &skin, const QString &text, QPainter *painter, QWidget *widget)
 
template<typename T >
static void mousePressEvent (T &self, QGraphicsSceneMouseEvent *event)
 
static double deltaFor (double orig, double bound, double height) noexcept
 
template<typename T >
static double mapValue (T &self, QGraphicsSceneMouseEvent *event) noexcept
 
template<typename T >
static void mouseMoveEvent (T &self, QGraphicsSceneMouseEvent *event)
 
template<typename T >
static void mouseReleaseEvent (T &self, QGraphicsSceneMouseEvent *event)
 
template<typename T >
static void ungrabMouseEvent (T &self, QEvent *event)
 
template<typename T >
requires std::is_integral_v<std::decay_t<decltype(std::declval<T>().value())>>
static void contextMenuEvent (T &self, QPointF pos)
 
template<typename T >
requires std::is_floating_point_v<std::decay_t<decltype(std::declval<T>().value())>>
static void contextMenuEvent (T &self, QPointF pos)
 
template<typename T >
static void mouseDoubleClickEvent (T &self, QGraphicsSceneMouseEvent *event)
 

Member Function Documentation

◆ ungrabMouseEvent()

template<typename T >
static void score::DefaultGraphicsSpinboxImpl::ungrabMouseEvent ( T &  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: