aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMassimo Callegari <massimocallegari@yahoo.it>2018-12-24 10:57:14 +0100
committerMitch Curtis <mitch.curtis@qt.io>2019-01-08 13:05:48 +0000
commitd438e61fcd52c4a45fefc42edf6e8fe806b11de2 (patch)
tree977dcd46a9c874b78266f9983290736ed5995709 /src
parent520657bdfa0aba68e31758c5952a01c45940cd8f (diff)
Slider: fix wheel event propagation
Don't propagate wheel events when reaching the limits. Sync the behavior with Qt widgets and SpinBox/ComboBox. Task-number: QTBUG-72750 Change-Id: Iefb8562c1d9632badc4a39bc4c301bd96b8a515b Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/quicktemplates2/qquickslider.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickslider.cpp b/src/quicktemplates2/qquickslider.cpp
index 179dcb64..054ea502 100644
--- a/src/quicktemplates2/qquickslider.cpp
+++ b/src/quicktemplates2/qquickslider.cpp
@@ -848,7 +848,6 @@ void QQuickSlider::wheelEvent(QWheelEvent *event)
const bool wasMoved = !qFuzzyCompare(d->value, oldValue);
if (wasMoved)
emit moved();
- event->setAccepted(wasMoved);
}
}
#endif