Loading...
Searching...
No Matches
oscr::WheelGesture Class Referencefinal
Inheritance diagram for oscr::WheelGesture:

Detailed Description

Opt-in custom-item wheel gestures. Only the active item filters application events; its values still change synchronously in the item's wheel handler.

Public Member Functions

 WheelGesture (QGraphicsItem &item, void(*finish)(QGraphicsItem &))
 
void prepare (QGraphicsSceneWheelEvent &event, int target)
 
void finish ()
 
QTimer & idleTimer () noexcept
 Ends a gesture without scroll phases once no event came for a while.
 

Static Public Member Functions

static WheelGesture * active () noexcept
 The gesture under way, if any.
 

Member Function Documentation

◆ prepare()

void oscr::WheelGesture::prepare ( QGraphicsSceneWheelEvent &  event,
int  target 
)

Ends a previous item/target and handles zero-delta native phase boundaries. A nonzero ScrollEnd is dispatched first, then closed with finish().


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