Commit 4ca436a5 authored by Ilkka Ollakka's avatar Ilkka Ollakka
Browse files

Qt4: adjust iconviews art position littlebit

Should show current selection little better
parent 6a18a30a
......@@ -42,7 +42,7 @@
static const QRect drawRect = QRect( 0, 0, RECT_SIZE, RECT_SIZE );
static const QRect artRect = drawRect.adjusted( OFFSET - 1, 0, - OFFSET, - OFFSET *2 );
static const QRect artRect = drawRect.adjusted( OFFSET - 1, 2, - OFFSET, - OFFSET *2 );
void PlListViewItemDelegate::paint( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const
{
......@@ -113,7 +113,7 @@ void PlListViewItemDelegate::paint( QPainter * painter, const QStyleOptionViewIt
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->drawRoundedRect( 0, 0, RECT_SIZE, RECT_SIZE, ART_RADIUS, ART_RADIUS );
pixpainter->restore();
}
......
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