diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-03-05 15:15:45 +0200 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-03-30 13:35:17 +0300 |
commit | f06c728734b0102b131395f297de60877d4d0a66 (patch) | |
tree | 466852de53697af8a6679e95c102322932c9c384 | |
parent | ab9ca7de7ffb4b9becf627764498354096d21588 (diff) | |
download | tdebase-f06c728734b0102b131395f297de60877d4d0a66.tar.gz tdebase-f06c728734b0102b131395f297de60877d4d0a66.zip |
LibKonq: modified setIcons() to accept custom spacing values.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
-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() ) |