diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-04-19 17:04:50 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-04-20 06:12:57 +0000 |
commit | 3612cd597aaf5a0904f29a13b9a64029d4a956bb (patch) | |
tree | 6c7cf06c29e489c9f9cc5684451ed7d13cad9703 /src/quicktemplates2/qquickspinbox.cpp | |
parent | 3824cdb9c43ab26fcf5c2f6dcc267d18c4aa4b2b (diff) |
QQuickSpinBoxPrivate::handleXxx(): remove unused return values
Match the signature of the upcoming QQuickControlPrivate::handleXxx()
virtuals.
Change-Id: Iad5f5d87e1abed37880e8682175214123b0df5c7
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickspinbox.cpp')
-rw-r--r-- | src/quicktemplates2/qquickspinbox.cpp | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/quicktemplates2/qquickspinbox.cpp b/src/quicktemplates2/qquickspinbox.cpp index 9558cfc5..3303ded7 100644 --- a/src/quicktemplates2/qquickspinbox.cpp +++ b/src/quicktemplates2/qquickspinbox.cpp @@ -137,10 +137,10 @@ public: void startPressRepeat(); void stopPressRepeat(); - bool handlePress(const QPointF &point); - bool handleMove(const QPointF &point); - bool handleRelease(const QPointF &point); - bool handleUngrab(); + void handlePress(const QPointF &point); + void handleMove(const QPointF &point); + void handleRelease(const QPointF &point); + void handleUngrab(); bool editable; int from; @@ -271,7 +271,7 @@ void QQuickSpinBoxPrivate::stopPressRepeat() } } -bool QQuickSpinBoxPrivate::handlePress(const QPointF &point) +void QQuickSpinBoxPrivate::handlePress(const QPointF &point) { Q_Q(QQuickSpinBox); QQuickItem *ui = up->indicator(); @@ -283,10 +283,9 @@ bool QQuickSpinBoxPrivate::handlePress(const QPointF &point) q->setAccessibleProperty("pressed", pressed); if (pressed) startRepeatDelay(); - return pressed; } -bool QQuickSpinBoxPrivate::handleMove(const QPointF &point) +void QQuickSpinBoxPrivate::handleMove(const QPointF &point) { Q_Q(QQuickSpinBox); QQuickItem *ui = up->indicator(); @@ -298,17 +297,15 @@ bool QQuickSpinBoxPrivate::handleMove(const QPointF &point) q->setAccessibleProperty("pressed", pressed); if (!pressed) stopPressRepeat(); - return pressed; } -bool QQuickSpinBoxPrivate::handleRelease(const QPointF &point) +void QQuickSpinBoxPrivate::handleRelease(const QPointF &point) { Q_Q(QQuickSpinBox); QQuickItem *ui = up->indicator(); QQuickItem *di = down->indicator(); int oldValue = value; - bool wasPressed = up->isPressed() || down->isPressed(); if (up->isPressed()) { up->setPressed(false); if (repeatTimer <= 0 && ui && ui->contains(ui->mapFromItem(q, point))) @@ -323,10 +320,9 @@ bool QQuickSpinBoxPrivate::handleRelease(const QPointF &point) q->setAccessibleProperty("pressed", false); stopPressRepeat(); - return wasPressed; } -bool QQuickSpinBoxPrivate::handleUngrab() +void QQuickSpinBoxPrivate::handleUngrab() { Q_Q(QQuickSpinBox); up->setPressed(false); @@ -334,7 +330,6 @@ bool QQuickSpinBoxPrivate::handleUngrab() q->setAccessibleProperty("pressed", false); stopPressRepeat(); - return false; } QQuickSpinBox::QQuickSpinBox(QQuickItem *parent) |