]> git.sesse.net Git - vlc/commitdiff
Qt4: adjust iconviews art position littlebit
authorIlkka Ollakka <ileoo@videolan.org>
Sun, 31 Jan 2010 09:29:28 +0000 (11:29 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 31 Jan 2010 09:29:28 +0000 (11:29 +0200)
Should show current selection little better

modules/gui/qt4/components/playlist/icon_view.cpp

index d8da08ccd1dacbd84875cb8c1df043c766a3a112..ac08608ca1ded7ced12f4df7ed43b9e4f50f2b2b 100644 (file)
@@ -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();
     }