1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02:00

* Made sure we always restore the painter after using it.

This commit is contained in:
Christian Muehlhaeuser
2011-06-12 18:06:29 +02:00
parent 327ce84e46
commit fbdf53de50

View File

@@ -169,15 +169,14 @@ PlaylistItemDelegate::paintDetailed( QPainter* painter, const QStyleOptionViewIt
} }
// Paint Now Playing Frame // Paint Now Playing Frame
return; //FIXME /* {
{
QRect r = QRect( 3, opt.rect.y() + 1, m_view->viewport()->width() - 6, opt.rect.height() - 2 ); QRect r = QRect( 3, opt.rect.y() + 1, m_view->viewport()->width() - 6, opt.rect.height() - 2 );
painter->setPen( opt.palette.highlight().color() ); painter->setPen( opt.palette.highlight().color() );
QPen pen = painter->pen(); QPen pen = painter->pen();
pen.setWidth( 1.0 ); pen.setWidth( 1.0 );
painter->setPen( pen ); painter->setPen( pen );
painter->drawRoundedRect( r, 3.0, 3.0 ); painter->drawRoundedRect( r, 3.0, 3.0 );
} }*/
} }
painter->restore(); painter->restore();
} }