1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 15:29:42 +01:00

* Fixed default row sizehints in Album- & PlaylistLargeItemDelegate.

This commit is contained in:
Christian Muehlhaeuser 2013-01-04 11:17:59 +01:00
parent 9b9c826f62
commit dec530cc24
2 changed files with 4 additions and 10 deletions

View File

@ -64,11 +64,8 @@ AlbumItemDelegate::sizeHint( const QStyleOptionViewItem& option, const QModelInd
{
QSize size = QStyledItemDelegate::sizeHint( option, index );
if ( index.isValid() )
{
int rowHeight = option.fontMetrics.height() + 8;
size.setHeight( rowHeight * 1.5 );
}
int rowHeight = option.fontMetrics.height() + 8;
size.setHeight( rowHeight * 1.5 );
return size;
}

View File

@ -68,11 +68,8 @@ PlaylistLargeItemDelegate::sizeHint( const QStyleOptionViewItem& option, const Q
{
QSize size = QStyledItemDelegate::sizeHint( option, index );
if ( index.isValid() )
{
int rowHeight = option.fontMetrics.height() + 8;
size.setHeight( rowHeight * 3 );
}
int rowHeight = option.fontMetrics.height() + 8;
size.setHeight( rowHeight * 3 );
return size;
}