diff options
Diffstat (limited to 'src/graphicsitems/qxpathview_p_p.h')
| -rw-r--r-- | src/graphicsitems/qxpathview_p_p.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/graphicsitems/qxpathview_p_p.h b/src/graphicsitems/qxpathview_p_p.h index 210cc7c..d2f0698 100644 --- a/src/graphicsitems/qxpathview_p_p.h +++ b/src/graphicsitems/qxpathview_p_p.h @@ -77,7 +77,7 @@ public: , lastElapsed(0), mappedRange(1.0) , stealMouse(false), ownModel(false), interactive(true), haveHighlightRange(true) , autoHighlight(true), highlightUp(false), layoutScheduled(false) - , moving(false) + , moving(false), flicking(false) , dragMargin(0), deceleration(100) , moveOffset(this, &QxPathViewPrivate::setOffset) , firstIndex(-1), pathItems(-1), requestedIndex(-1) @@ -116,6 +116,11 @@ public: } } + void movementEnding(); + void handleMousePressEvent(QGraphicsSceneMouseEvent *event); + void handleMouseReleaseEvent(QGraphicsSceneMouseEvent *event); + void handleMouseMoveEvent(QGraphicsSceneMouseEvent *event); + QxItem *getItem(int modelIndex); void releaseItem(QxItem *item); QxPathViewAttached *attached(QxItem *item); @@ -157,6 +162,7 @@ public: bool highlightUp : 1; bool layoutScheduled : 1; bool moving; + bool flicking; QElapsedTimer lastPosTime; QPointF lastPos; qreal dragMargin; |
