D25683: KDirOperator: Use a fixed line height for scroll speed

Arjen Hiemstra noreply at phabricator.kde.org
Mon Dec 2 14:07:25 GMT 2019


ahiemstra created this revision.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
ahiemstra requested review of this revision.

REVISION SUMMARY
  This patch intends to do mostly the same as D19190 <https://phabricator.kde.org/D19190>, but for KDirOperator.
  This uses the font's line height multiplied by the amount of scroll lines
  from QApplication as a scroll speed for views. This makes the scroll speed
  not depend on the icon size, which greatly improves scrolling behaviour.

TEST PLAN
  Run tests/kfilewidgettest_gui and go to a directory with a lot of items.
  Scroll around, then change icon size and see that scrolling speed remains
  the same.

REPOSITORY
  R241 KIO

BRANCH
  diroperator_scrollspeed

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

AFFECTED FILES
  src/filewidgets/kdiroperatordetailview.cpp
  src/filewidgets/kdiroperatoriconview.cpp

To: ahiemstra
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20191202/c632e05c/attachment.html>


More information about the Kde-frameworks-devel mailing list