Loading...
Searching...
No Matches
score::DefaultGraphicsSliderImpl 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)
 
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 >
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::DefaultGraphicsSliderImpl::ungrabMouseEvent ( T &  self,
QEvent *  event 
)
inlinestatic

QEvent::UngrabMouse. The scene drops an item's implicit grab without ever delivering a release – most visibly when the button was let go outside the window and the pointer then comes back in, which QGraphicsScenePrivate::sendMouseEvent answers by clearing the grabber and discarding the event. The drag has to be closed here too: otherwise moving stays set and this control stops following its model, and the ongoing command it opened stays open, so the next control the user touches has its edits redirected onto this one.


The documentation for this struct was generated from the following file: