mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-02-25 20:33:20 +01:00
Draw row bgs properly, expanding for playlists
This commit is contained in:
parent
fbaa48187b
commit
113985eea9
@ -493,7 +493,11 @@ SourceDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, co
|
||||
}
|
||||
}
|
||||
|
||||
QStyledItemDelegate::paint( painter, o2, QModelIndex() );
|
||||
QStyleOptionViewItemV4 o3 = option;
|
||||
if ( index.data( SourceTreeItem::Type ) != SourcesModel::CollectionSource )
|
||||
o3.rect.setX( 0 );
|
||||
|
||||
QApplication::style()->drawControl( QStyle::CE_ItemViewItem, &o3, painter );
|
||||
|
||||
if ( index.data( SourceTreeItem::Type ) == SourcesModel::CollectionSource )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user