┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kfileitemlistview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-02-04 22:14:53 +0100
committerPeter Penz <[email protected]>2012-02-04 22:22:19 +0100
commit72af3125a824722d9875d202dd156cd3f7d8fc46 (patch)
treecac6d24b77d463f264d6b82478fde44b89a38081 /src/kitemviews/kfileitemlistview.h
parenta2a78c98fc9737fcd7a126790f88b40fdcc38ae6 (diff)
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: [email protected]
Diffstat (limited to 'src/kitemviews/kfileitemlistview.h')
-rw-r--r--src/kitemviews/kfileitemlistview.h7
1 files changed, 7 insertions, 0 deletions
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;