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

Qt: wrap items automatically in a grid.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 3a236ec5
......@@ -82,6 +82,9 @@ PlIconView::PlIconView( PLModel *model, QWidget *parent ) : QListView( parent )
setModel( model );
setViewMode( QListView::IconMode );
setMovement( QListView::Static );
setResizeMode( QListView::Adjust );
setGridSize( QSize( 100, 100 ) );
setWrapping( true );
PlListViewItemDelegate *pl = new PlListViewItemDelegate();
setItemDelegate( pl );
......
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