diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-03-08 11:22:47 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-03-08 11:44:54 (GMT) |
commit | 7695e48ed3ff7e2e1157bcdcb27188532dc75d20 (patch) | |
tree | 9fdf60aaa98feffe1c45cda8586b482bc5abf6cb /src | |
parent | 7c3bb2f35b70605a0b0a535c8cd6090354b09b19 (diff) | |
download | Qt-7695e48ed3ff7e2e1157bcdcb27188532dc75d20.zip Qt-7695e48ed3ff7e2e1157bcdcb27188532dc75d20.tar.gz Qt-7695e48ed3ff7e2e1157bcdcb27188532dc75d20.tar.bz2 |
Fixed mouse wheel handling in scrollareas.
When handling wheel events in the scrollbar we should ignore the event by
default, so that if we cannot scroll it gets propagated (like in
QAbstractSlider).
Task-number: QTBUG-8325
Reviewed-by: Richard Moe Gustavsen
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/qscrollbar.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/widgets/qscrollbar.cpp b/src/gui/widgets/qscrollbar.cpp index 4eff260..c0eeb2f 100644 --- a/src/gui/widgets/qscrollbar.cpp +++ b/src/gui/widgets/qscrollbar.cpp @@ -523,6 +523,7 @@ bool QScrollBar::event(QEvent *event) break; #ifndef QT_NO_WHEELEVENT case QEvent::Wheel: { + event->ignore(); // override wheel event without adding virtual function override QWheelEvent *ev = static_cast<QWheelEvent *>(event); int delta = ev->delta(); |