From e29e1cda15973969164d7b7fa805544189a5e172 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 9 Feb 2012 09:57:47 +0100 Subject: Icon-rectangle and selection-toggle optimizations - No padding should be applied to the icon-rectangle - Base the selection-toggle size on the icon-size of the style not the actual pixmap content, as this might lead to smaller selection-toggles when having pixmap-previews with a small height. --- src/kitemviews/kitemlistviewlayouter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kitemviews/kitemlistviewlayouter.cpp') diff --git a/src/kitemviews/kitemlistviewlayouter.cpp b/src/kitemviews/kitemlistviewlayouter.cpp index 30dd10346..2d02b6725 100644 --- a/src/kitemviews/kitemlistviewlayouter.cpp +++ b/src/kitemviews/kitemlistviewlayouter.cpp @@ -320,7 +320,7 @@ void KItemListViewLayouter::doLayout() m_xPosInc = itemMargin.width(); const int itemCount = m_model->count(); - if (itemCount > m_columnCount) { + if (itemCount > m_columnCount && m_columnWidth >= 32) { // Apply the unused width equally to each column const qreal unusedWidth = size.width() - m_columnCount * m_columnWidth; if (unusedWidth > 0) { -- cgit v1.3