diff options
| author | Peter Penz <[email protected]> | 2007-05-17 08:42:07 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-05-17 08:42:07 +0000 |
| commit | fb37c0fb53493181de9390397ef7c35d7041ab23 (patch) | |
| tree | f411af7f56b754a0a92502783783bbf7dd36b94b /src/dolphiniconsview.cpp | |
| parent | e122a026843cd0d2f2978bea4b042fde039cb67a (diff) | |
don't increase the decoration size if the icons are aligned from left to right
svn path=/trunk/KDE/kdebase/apps/; revision=665573
Diffstat (limited to 'src/dolphiniconsview.cpp')
| -rw-r--r-- | src/dolphiniconsview.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
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)); |
