Go to file
Marc Mutz aec5b76b51 [QTBUG-27308][QTBUG-21534] Don't mouse-wheel-scroll QScrollBar when disabled
This fixes a regression introduced in Qt 4 commit
e855b199319c932f2e9500235775f961bc32e41a.

The problem was that by handling the wheel event in event()
instead of wheelEvent(), we lack the guard clause in QWidget
that doesn't even call the handler if the widget is disabled,
and the code didn't handle this itself.

Fix by reimplementing wheelEvent() instead, which we can now
do because we can break BC.

This commit just moves the code. Another commit will clean
up the implementation of wheelEvent().

Task-number: QTBUG-27308
Reported-by: chenjiexin
Task-number: QTBUG-21534
Reported-by: Martin Koller
Change-Id: Ibe6b89a81fe889f839c205b859a1492b39a4ddc3
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
2012-09-26 19:06:47 +02:00
bin Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
config.tests Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
dist QFileSystemModel: fix permission mangling 2012-09-26 04:03:41 +02:00
doc Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
examples Fix compilation for Qt5: Avoid deprecated API 2012-09-26 18:52:14 +02:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs CMake: Fix the generated location of static libraries. 2012-09-26 10:08:59 +02:00
qmake qmake: Fix gcc warning about anonymous type linkage 2012-09-26 10:08:59 +02:00
src [QTBUG-27308][QTBUG-21534] Don't mouse-wheel-scroll QScrollBar when disabled 2012-09-26 19:06:47 +02:00
tests [QTBUG-27308][QTBUG-21534] Don't mouse-wheel-scroll QScrollBar when disabled 2012-09-26 19:06:47 +02:00
tools Introduce an option to disable stripping during installation 2012-09-24 21:27:51 +02:00
util Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
.gitattributes Update the git-archive export options 2012-09-07 15:39:31 +02:00
.gitignore Updated .gitignore 2012-08-18 13:59:11 +02:00
.tag Update the git-archive export options 2012-09-07 15:39:31 +02:00
configure configure: Document the -widgets, -no-widgets arguments 2012-09-26 10:08:59 +02:00
configure.bat Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.BSD Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.FDL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.LGPL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.LGPL-ONLY Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
INSTALL Remove Symbian specific code from qtbase. 2012-01-31 07:08:31 +01:00
LGPL_EXCEPTION.txt Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.GPL Add the LICENSE.GPL file to the module referenced from license headers 2012-05-20 22:41:08 +02:00
LICENSE.LGPL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
LICENSE.PREVIEW.COMMERCIAL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtbase.pro Install right version of tools when x-compiling. 2012-07-17 12:52:48 +02:00
sync.profile Revert "Move QWindowSystemInterface out of qpa." 2012-08-03 00:38:09 +02:00