aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickswitch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quicktemplates2/qquickswitch.cpp')
-rw-r--r--src/quicktemplates2/qquickswitch.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/quicktemplates2/qquickswitch.cpp b/src/quicktemplates2/qquickswitch.cpp
index 4fc40c33..e9fef6c8 100644
--- a/src/quicktemplates2/qquickswitch.cpp
+++ b/src/quicktemplates2/qquickswitch.cpp
@@ -85,8 +85,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::Switch); }
@@ -114,18 +114,18 @@ bool QQuickSwitchPrivate::canDrag(const QPointF &movePoint) const
return (pressPos >= 0.0 && pressPos <= 1.0) || (movePos >= 0.0 && movePos <= 1.0);
}
-void QQuickSwitchPrivate::handleMove(const QPointF &point)
+void QQuickSwitchPrivate::handleMove(const QPointF &point, ulong timestamp)
{
Q_Q(QQuickSwitch);
- QQuickAbstractButtonPrivate::handleMove(point);
+ QQuickAbstractButtonPrivate::handleMove(point, timestamp);
if (q->keepMouseGrab() || q->keepTouchGrab())
q->setPosition(positionAt(point));
}
-void QQuickSwitchPrivate::handleRelease(const QPointF &point)
+void QQuickSwitchPrivate::handleRelease(const QPointF &point, ulong timestamp)
{
Q_Q(QQuickSwitch);
- QQuickAbstractButtonPrivate::handleRelease(point);
+ QQuickAbstractButtonPrivate::handleRelease(point, timestamp);
q->setKeepMouseGrab(false);
q->setKeepTouchGrab(false);
}