mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 01:54:07 +02:00
More spacing above first group in sidebar.
This commit is contained in:
@@ -87,7 +87,7 @@ SourceDelegate::sizeHint( const QStyleOptionViewItem& option, const QModelIndex&
|
|||||||
}
|
}
|
||||||
else if ( type == SourcesModel::Group )
|
else if ( type == SourcesModel::Group )
|
||||||
{
|
{
|
||||||
const int groupSpacer = index.row() > 0 ? option.fontMetrics.height() * 2.5 : option.fontMetrics.height() * 0.8;
|
const int groupSpacer = index.row() > 0 ? option.fontMetrics.height() * 2.5 : option.fontMetrics.height() * 1.8;
|
||||||
return QSize( option.rect.width(), option.fontMetrics.height() + groupSpacer );
|
return QSize( option.rect.width(), option.fontMetrics.height() + groupSpacer );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user