Browse Source

LibKonq: modified setIcons() to accept custom spacing values.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/185/head
Mavridis Philippe 1 year ago
parent
commit
f06c728734
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494
  1. 2
      libkonq/konq_iconviewwidget.cpp

2
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() )

Loading…
Cancel
Save