diff options
Diffstat (limited to 'src/quicktemplates2/qquickswitchdelegate.cpp')
-rw-r--r-- | src/quicktemplates2/qquickswitchdelegate.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/quicktemplates2/qquickswitchdelegate.cpp b/src/quicktemplates2/qquickswitchdelegate.cpp index 86041354..e0f1636c 100644 --- a/src/quicktemplates2/qquickswitchdelegate.cpp +++ b/src/quicktemplates2/qquickswitchdelegate.cpp @@ -82,8 +82,8 @@ public: qreal positionAt(const QPointF &point) const; bool canDrag(const QPointF &movePoint) const; - void handleMove(const QPointF &point) override; - void handleRelease(const QPointF &point) override; + void handleMove(const QPointF &point, ulong timestamp) override; + void handleRelease(const QPointF &point, ulong timestamp) override; QPalette defaultPalette() const override { return QQuickTheme::palette(QQuickTheme::ListView); } @@ -111,18 +111,18 @@ bool QQuickSwitchDelegatePrivate::canDrag(const QPointF &movePoint) const return (pressPos >= 0.0 && pressPos <= 1.0) || (movePos >= 0.0 && movePos <= 1.0); } -void QQuickSwitchDelegatePrivate::handleMove(const QPointF &point) +void QQuickSwitchDelegatePrivate::handleMove(const QPointF &point, ulong timestamp) { Q_Q(QQuickSwitchDelegate); - QQuickItemDelegatePrivate::handleMove(point); + QQuickItemDelegatePrivate::handleMove(point, timestamp); if (q->keepMouseGrab() || q->keepTouchGrab()) q->setPosition(positionAt(point)); } -void QQuickSwitchDelegatePrivate::handleRelease(const QPointF &point) +void QQuickSwitchDelegatePrivate::handleRelease(const QPointF &point, ulong timestamp) { Q_Q(QQuickSwitchDelegate); - QQuickItemDelegatePrivate::handleRelease(point); + QQuickItemDelegatePrivate::handleRelease(point, timestamp); q->setKeepMouseGrab(false); q->setKeepTouchGrab(false); } |