mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-26 15:25:04 +02:00
* Set text-antialias render-hint in TrackItemDelegate.
This commit is contained in:
@@ -90,6 +90,8 @@ TrackItemDelegate::sizeHint( const QStyleOptionViewItem& option, const QModelInd
|
|||||||
void
|
void
|
||||||
TrackItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const
|
TrackItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const
|
||||||
{
|
{
|
||||||
|
painter->setRenderHint( QPainter::TextAntialiasing );
|
||||||
|
|
||||||
PlayableItem* item = m_model->itemFromIndex( m_model->mapToSource( index ) );
|
PlayableItem* item = m_model->itemFromIndex( m_model->mapToSource( index ) );
|
||||||
Q_ASSERT( item );
|
Q_ASSERT( item );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user