mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 23:26:40 +02:00
* Always initialize the style option, so we set the right selection state.
This commit is contained in:
@@ -122,11 +122,9 @@ PlaylistLargeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem&
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
prepareStyleOption( &opt, index, item );
|
prepareStyleOption( &opt, index, item );
|
||||||
|
|
||||||
opt.text.clear();
|
opt.text.clear();
|
||||||
|
|
||||||
qApp->style()->drawControl( QStyle::CE_ItemViewItem, &opt, painter );
|
qApp->style()->drawControl( QStyle::CE_ItemViewItem, &opt, painter );
|
||||||
|
|
||||||
if ( m_view->header()->visualIndex( index.column() ) > 0 )
|
if ( m_view->header()->visualIndex( index.column() ) > 0 )
|
||||||
|
Reference in New Issue
Block a user