diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-11-11 15:28:24 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-11-11 15:35:59 (GMT) |
commit | 46a3e518b3070cf7cb4cbbb2cb58254454cf169d (patch) | |
tree | 5f3713cc524d59f09db230b4bcacb26008980070 /src/gui/widgets/qabstractslider.cpp | |
parent | 2b6fd0a7bdac686a41d7fbbe47ad3ded9e1d77b5 (diff) | |
download | Qt-46a3e518b3070cf7cb4cbbb2cb58254454cf169d.zip Qt-46a3e518b3070cf7cb4cbbb2cb58254454cf169d.tar.gz Qt-46a3e518b3070cf7cb4cbbb2cb58254454cf169d.tar.bz2 |
QAbstractScrollArea: Wheel over a scrollarea that has only one horizontal scrollbar
If the vertical scrollbar is hidden, scroll using the other scrollbar.
Reviewed-by: Thierry
Task-number: QTBUG-1760
Diffstat (limited to 'src/gui/widgets/qabstractslider.cpp')
-rw-r--r-- | src/gui/widgets/qabstractslider.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gui/widgets/qabstractslider.cpp b/src/gui/widgets/qabstractslider.cpp index fec9fab..e0db9c2 100644 --- a/src/gui/widgets/qabstractslider.cpp +++ b/src/gui/widgets/qabstractslider.cpp @@ -690,8 +690,6 @@ void QAbstractSlider::wheelEvent(QWheelEvent * e) { Q_D(QAbstractSlider); e->ignore(); - if (e->orientation() != d->orientation && !rect().contains(e->pos())) - return; int stepsToScroll = 0; qreal offset = qreal(e->delta()) / 120; |