diff options
author | Mavridis Philippe <[email protected]> | 2021-03-05 15:15:45 +0200 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-03-30 22:44:26 +0900 |
commit | 3c1547635df0c6eb61a9693af90143d0cf04f79c (patch) | |
tree | 547fd44555382a48546ff28e4ce37d7c064a44f1 /libkonq | |
parent | a1cdba642147a6ab5b025186fe777413ed66513e (diff) | |
download | tdebase-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.cpp | 2 |
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() ) |