D12149: Improve grid spacing in icons-on-top mode for open/save dialogs

Christoph Feck noreply at phabricator.kde.org
Thu Apr 12 21:30:28 UTC 2018


cfeck added inline comments.

INLINE COMMENTS

> kdiroperator.cpp:2590
> +        // Set a minimum width to make enough room for a label when the icons are tiny
> +        const QSize itemSize = QSize(qMax(120, width), height);
> +        view->setGridSize(itemSize);

If you need a minimum width to accomodate a minimum number of characters, you could use a value proportional to font size, e.g. "8 * metrics.height()" will give you room for about 15 characters (they are usually twice as tall as wide).

REPOSITORY
  R241 KIO

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

To: ngraham, #frameworks, #vdg, rkflx
Cc: cfeck, alexeymin, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180412/ca914639/attachment.html>


More information about the Kde-frameworks-devel mailing list