diff options
| author | Peter Penz <[email protected]> | 2012-02-09 09:57:47 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-02-09 16:05:03 +0100 |
| commit | e29e1cda15973969164d7b7fa805544189a5e172 (patch) | |
| tree | 32dd4650df9320e39884ae060f649259a1e1c5a8 /src/kitemviews/kitemlistviewlayouter.cpp | |
| parent | 03415d90783979f8e51880b7950721985fee29bf (diff) | |
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.
Diffstat (limited to 'src/kitemviews/kitemlistviewlayouter.cpp')
| -rw-r--r-- | src/kitemviews/kitemlistviewlayouter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
