Commit d9fed02a authored by Ilkka Ollakka's avatar Ilkka Ollakka

qt4: show more clearly current item in iconview

parent 9406b4cc
......@@ -105,7 +105,17 @@ void PlListViewItemDelegate::paint( QPainter * painter, const QStyleOptionViewIt
QPainter *pixpainter = new QPainter( &pix );
pixpainter->setRenderHints(
QPainter::Antialiasing | QPainter::SmoothPixmapTransform );
QPainter::Antialiasing | QPainter::SmoothPixmapTransform |
QPainter::TextAntialiasing );
if( index.data( PLModel::IsCurrentRole ).toInt() > 0 )
{
pixpainter->save();
pixpainter->setOpacity( 0.2 );
pixpainter->setBrush( QBrush( Qt::gray ) );
pixpainter->drawRoundedRect( 0, -1, RECT_SIZE, RECT_SIZE+1, ART_RADIUS, ART_RADIUS );
pixpainter->restore();
}
// Draw the drop shadow
pixpainter->save();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment