From 72af3125a824722d9875d202dd156cd3f7d8fc46 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 4 Feb 2012 22:14:53 +0100 Subject: Icons view: Layout optimizations - Assure that landscape-previews use the whole available width of the icon-area instead of only using the square width. This waste of space occured if the text-width was larger than the icon-width. - Only use one margin instead of two between the icons and the text to improve the visual appearance (thanks to Martin Zilz for the hint) BUG: 293268 FIXED-IN: 4.8.1 CCMAIL: martin@kreativkonzentrat.de --- src/views/dolphinitemlistcontainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/views/dolphinitemlistcontainer.cpp') diff --git a/src/views/dolphinitemlistcontainer.cpp b/src/views/dolphinitemlistcontainer.cpp index c687ede4d..4f7a0e06b 100644 --- a/src/views/dolphinitemlistcontainer.cpp +++ b/src/views/dolphinitemlistcontainer.cpp @@ -218,7 +218,7 @@ void DolphinItemListContainer::updateGridSize() if (itemWidth < iconSize + innerMargin * 2) { itemWidth = iconSize + innerMargin * 2; } - itemHeight = innerMargin * 2 + iconSize + styleOption.fontMetrics.height(); + itemHeight = innerMargin * 3 + iconSize + styleOption.fontMetrics.height(); break; } case KFileItemListView::CompactLayout: { -- cgit v1.3