summaryrefslogtreecommitdiffstats
path: root/libkonq/konq_iconviewwidget.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2021-03-05 15:15:45 +0200
committerMavridis Philippe <[email protected]>2021-03-30 13:35:17 +0300
commitf06c728734b0102b131395f297de60877d4d0a66 (patch)
tree466852de53697af8a6679e95c102322932c9c384 /libkonq/konq_iconviewwidget.cpp
parentab9ca7de7ffb4b9becf627764498354096d21588 (diff)
downloadtdebase-f06c728734b0102b131395f297de60877d4d0a66.tar.gz
tdebase-f06c728734b0102b131395f297de60877d4d0a66.zip
LibKonq: modified setIcons() to accept custom spacing values.
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'libkonq/konq_iconviewwidget.cpp')
-rw-r--r--libkonq/konq_iconviewwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libkonq/konq_iconviewwidget.cpp b/libkonq/konq_iconviewwidget.cpp
index 3fe916cad..995b51ebc 100644
--- a/libkonq/konq_iconviewwidget.cpp
+++ b/libkonq/konq_iconviewwidget.cpp
@@ -639,7 +639,7 @@ void KonqIconViewWidget::setIcons( int size, const TQStringList& stopImagePrevie
int realSize = size ? size : TDEGlobal::iconLoader()->currentSize( TDEIcon::Desktop );
// choose spacing depending on font, but min 5 (due to KFileIVI move limit)
setSpacing( ( m_bDesktop || ( realSize > TDEIcon::SizeSmall ) ) ?
- TQMAX( 5, TQFontMetrics(font()).width('n') ) : 0 );
+ TQMAX( spacing(), TQFontMetrics(font()).width('n') ) : 0 );
}
if ( sizeChanged || previewSizeChanged || !stopImagePreviewFor.isEmpty() )