Commit eb9ef15d authored by Ludovic Fauvet's avatar Ludovic Fauvet Committed by Jean-Baptiste Kempf

Qt: add some spacing between items

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent af9bd10d
......@@ -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();
......
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