summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qcalendarwidget.cpp
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2016-04-05 11:27:53 +0300
committerAlexander Volkov <a.volkov@rusbitech.ru>2016-04-05 22:01:42 +0000
commit1735ca57a8c32e166f24cd8d39abc6583bbebf00 (patch)
treea5af6d434a9f42ca316226a5448e45b42d271aeb /src/widgets/widgets/qcalendarwidget.cpp
parenta057d42305072158d79eb74450e97542e3c0da5a (diff)
Fix slow scrolling by wheel after setting a custom scrollbar
The bug was introduced by 410aa20f073b5e45e73366773b7d173f840a9cfe (QAIV - allow users to control single step in ScrollPerPixel mode). QAbstractSliderPrivate::viewMayChangeSingleStep is reponsible for the expected behavior when scrolling by wheel. It is set to true by default, but calling QAbstractScrollArea::set*ScrollBar() results to always setting it to false. So we should copy viewMayChangeSingleStep manually from the old scrollbar. Change-Id: I2ee218054e473fa96785b123805e3943a5d74dbd Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Diffstat (limited to 'src/widgets/widgets/qcalendarwidget.cpp')
0 files changed, 0 insertions, 0 deletions