diff options
Diffstat (limited to 'src/gui/widgets/qscrollbar.cpp')
-rw-r--r-- | src/gui/widgets/qscrollbar.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/qscrollbar.cpp b/src/gui/widgets/qscrollbar.cpp index 02d584c..0157126 100644 --- a/src/gui/widgets/qscrollbar.cpp +++ b/src/gui/widgets/qscrollbar.cpp @@ -524,6 +524,8 @@ bool QScrollBar::event(QEvent *event) case QEvent::Wheel: { event->ignore(); // override wheel event without adding virtual function override + if (!isEnabled()) // don't scroll when disabled [QTBUG-27308] + return false; // normally prevented in QWidget::event() QWheelEvent *ev = static_cast<QWheelEvent *>(event); int delta = ev->delta(); // scrollbar is a special case - in vertical mode it reaches minimum |