From: Ilkka Ollakka Date: Sun, 31 Jan 2010 09:29:28 +0000 (+0200) Subject: Qt4: adjust iconviews art position littlebit X-Git-Tag: 1.1.0-ff~616 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4ca436a51a31b6b35cfdb2e11e6ca4f9c8490905;p=vlc Qt4: adjust iconviews art position littlebit Should show current selection little better --- diff --git a/modules/gui/qt4/components/playlist/icon_view.cpp b/modules/gui/qt4/components/playlist/icon_view.cpp index d8da08ccd1..ac08608ca1 100644 --- a/modules/gui/qt4/components/playlist/icon_view.cpp +++ b/modules/gui/qt4/components/playlist/icon_view.cpp @@ -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(); }