summaryrefslogtreecommitdiffstats
path: root/libkonq
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2021-03-05 15:15:45 +0200
committerMichele Calgaro <[email protected]>2021-03-30 22:44:26 +0900
commit3c1547635df0c6eb61a9693af90143d0cf04f79c (patch)
tree547fd44555382a48546ff28e4ce37d7c064a44f1 /libkonq
parenta1cdba642147a6ab5b025186fe777413ed66513e (diff)
downloadtdebase-3c1547635df0c6eb61a9693af90143d0cf04f79c.tar.gz
tdebase-3c1547635df0c6eb61a9693af90143d0cf04f79c.zip
LibKonq: modified setIcons() to accept custom spacing values.
Signed-off-by: Mavridis Philippe <[email protected]> (cherry picked from commit f06c728734b0102b131395f297de60877d4d0a66)
Diffstat (limited to 'libkonq')
-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() )