From: Peter Penz Date: Thu, 17 May 2007 08:42:07 +0000 (+0000) Subject: don't increase the decoration size if the icons are aligned from left to right X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/fb37c0fb53493181de9390397ef7c35d7041ab23 don't increase the decoration size if the icons are aligned from left to right svn path=/trunk/KDE/kdebase/apps/; revision=665573 --- diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index c80a58b6b..f8d149b56 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -267,10 +267,14 @@ void DolphinIconsView::updateGridSize(bool showPreview, bool showAdditionalInfo) itemHeight += m_viewOptions.font.pointSize() * 2; } - // The decoration width indirectly defines the maximum - // width for the text wrapping. To use the maximum item width - // for text wrapping, it is used as decoration width. - m_viewOptions.decorationSize = QSize(itemWidth, size); + if (settings->arrangement() == QListView::TopToBottom) { + // The decoration width indirectly defines the maximum + // width for the text wrapping. To use the maximum item width + // for text wrapping, it is used as decoration width. + m_viewOptions.decorationSize = QSize(itemWidth, size); + } else { + m_viewOptions.decorationSize = QSize(size, size); + } const int spacing = settings->gridSpacing(); setGridSize(QSize(itemWidth + spacing, itemHeight + spacing));