[vlc-devel] commit: Qt4: adjust iconviews art position littlebit (Ilkka Ollakka )

git version control git at videolan.org
Sun Jan 31 10:30:18 CET 2010


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Jan 31 11:29:28 2010 +0200| [4ca436a51a31b6b35cfdb2e11e6ca4f9c8490905] | committer: Ilkka Ollakka 

Qt4: adjust iconviews art position littlebit

Should show current selection little better

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4ca436a51a31b6b35cfdb2e11e6ca4f9c8490905
---

 modules/gui/qt4/components/playlist/icon_view.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/icon_view.cpp b/modules/gui/qt4/components/playlist/icon_view.cpp
index d8da08c..ac08608 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();
     }
 




More information about the vlc-devel mailing list