KDirOperator: Use a fixed line height for scroll speed

Authored by ahiemstra on Mon, Dec 2, 2:07 PM.



This patch intends to do mostly the same as 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.
For more details, see the linked review.

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.

Diff Detail

R241 KIO
No Linters Available
No Unit Test Coverage
Build Status
Buildable 19393
Build 19411: arc lint + arc unit
ahiemstra created this revision.Mon, Dec 2, 2:07 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptMon, Dec 2, 2:07 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
ahiemstra requested review of this revision.Mon, Dec 2, 2:07 PM
ahiemstra edited the summary of this revision. (Show Details)Mon, Dec 2, 2:08 PM
This revision is now accepted and ready to land.Mon, Dec 2, 3:03 PM
elvisangelaccio accepted this revision.Sun, Dec 8, 8:46 PM