D29230: Improve KexiRecordNavigator’s scroll wheel sensitivity

jordi fita i mas noreply at phabricator.kde.org
Mon Apr 27 14:20:27 BST 2020


jfita created this revision.
jfita added reviewers: staniek, piggz.
Herald added a project: KEXI.
Herald added a subscriber: Kexi-Devel-list.
jfita requested review of this revision.

REVISION SUMMARY
  KexiRecordNavigator handles mouse wheel event in horizontal direction by
  moving to the next or previous record. However, it triggered the change
  for every and all wheel events, even when the delta was tiny, and it
  resulted in unwanted record changes.
  
  This was particularly noticeable when using a trackpad in the report
  view, that uses KexiRecordNavigator for pagination: even when trying to
  keep the hand movement as vertical as possible to scroll the page, there
  were a lot of times that the viewer moved to the next or previous page.
  
  This commit, based on Qt’s QAbstractSlider, has a lower threshold for
  the wheel’s delta and keeps an accumulator to smooth out consecutive
  record switching.
  
  FIXED-IN:3.2.1

REPOSITORY
  R71 Kexi

BRANCH
  3.2

REVISION DETAIL
  https://phabricator.kde.org/D29230

AFFECTED FILES
  src/widget/utils/kexirecordnavigator.cpp

To: jfita, staniek, piggz
Cc: Kexi-Devel-list, barman, staniek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kexi-devel/attachments/20200427/a3d60355/attachment.html>


More information about the Kexi-devel mailing list