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/kitemviews/kfileitemlistview.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/kitemviews/kfileitemlistview.h') diff --git a/src/kitemviews/kfileitemlistview.h b/src/kitemviews/kfileitemlistview.h index 203fb78c4..ea8477858 100644 --- a/src/kitemviews/kfileitemlistview.h +++ b/src/kitemviews/kfileitemlistview.h @@ -124,6 +124,13 @@ private: */ void applyRolesToModel(); + /** + * @return Size that is available for the icons. The size might be larger than specified by + * KItemListStyleOption::iconSize: With the IconsLayout also the empty left area left + * and right of an icon will be included. + */ + QSize availableIconSize() const; + private: Layout m_itemLayout; -- cgit v1.3.1