Review Request 113902: Fix scrollbar spacing when no scrollbar is visible in dolphin.

Yichao Yu yyc1992 at gmail.com
Sat Nov 16 17:39:01 GMT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/113902/
-----------------------------------------------------------

Review request for Dolphin, Frank Reininghaus and Peter Penz.


Repository: kde-baseapps


Description
-------

Dolphin reserve space for scrollbar spacing even when no scrollbar is visible resulting in a ugly gap in the view when:
1. the theme uses QStyle::SH_ScrollView_FrameOnlyAroundContents and
2. the theme has a positive PM_ScrollView_ScrollBarSpacing.

QtCurve can have both while Oxygen have 1 but not 2.
To reproduce the problem with Oxygen style. Replace the `width += ....` (which returns -2 or 0 for Oxygen) with `width += 2`.

See more info here[1].

[1] https://github.com/QtCurve/qtcurve-qt4/issues/9#issuecomment-28630517


Diffs
-----

  dolphin/src/kitemviews/kitemlistcontainer.cpp f2e94b7 

Diff: http://git.reviewboard.kde.org/r/113902/diff/


Testing
-------

Logic looks right.
Compiled and it fixes the problem.


Thanks,

Yichao Yu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20131116/e08efb58/attachment.htm>


More information about the kfm-devel mailing list