[vlc-devel] commit: Qt: add some spacing between items (Ludovic Fauvet )
git version control
git at videolan.org
Mon Jan 25 16:08:33 CET 2010
vlc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Mon Jan 25 14:49:15 2010 +0100| [eb9ef15dade467d1b27a900ca510bb377c29ca33] | committer: Jean-Baptiste Kempf
Qt: add some spacing between items
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eb9ef15dade467d1b27a900ca510bb377c29ca33
---
modules/gui/qt4/components/playlist/icon_view.cpp | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/icon_view.cpp b/modules/gui/qt4/components/playlist/icon_view.cpp
index 9266903..2b9f52c 100644
--- a/modules/gui/qt4/components/playlist/icon_view.cpp
+++ b/modules/gui/qt4/components/playlist/icon_view.cpp
@@ -32,9 +32,10 @@
#include "assert.h"
-#define RECT_SIZE 100
-#define ART_SIZE 64
-#define OFFSET (100-64)/2
+#define RECT_SIZE 100
+#define ART_SIZE 64
+#define OFFSET (100-64)/2
+#define ITEMS_SPACING 10
void PlListViewItemDelegate::paint( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const
{
@@ -89,6 +90,7 @@ PlIconView::PlIconView( PLModel *model, QWidget *parent ) : QListView( parent )
setMovement( QListView::Static );
setResizeMode( QListView::Adjust );
setGridSize( QSize( 100, 100 ) );
+ setSpacing( ITEMS_SPACING );
setWrapping( true );
PlListViewItemDelegate *pl = new PlListViewItemDelegate();
More information about the vlc-devel
mailing list