Commit 9225ec11 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: allow multiple selection in iconView

parent ec86ab4e
...@@ -97,10 +97,12 @@ PlIconView::PlIconView( PLModel *model, QWidget *parent ) : QListView( parent ) ...@@ -97,10 +97,12 @@ PlIconView::PlIconView( PLModel *model, QWidget *parent ) : QListView( parent )
setViewMode( QListView::IconMode ); setViewMode( QListView::IconMode );
setMovement( QListView::Static ); setMovement( QListView::Static );
setResizeMode( QListView::Adjust ); setResizeMode( QListView::Adjust );
setGridSize( QSize( 100, 100 ) ); setGridSize( QSize( RECT_SIZE, RECT_SIZE ) );
setUniformItemSizes( true ); setUniformItemSizes( true );
setSpacing( ITEMS_SPACING ); setSpacing( ITEMS_SPACING );
setWrapping( true ); setWrapping( true );
setSelectionMode( QAbstractItemView::ExtendedSelection );
setAcceptDrops( true );
PlListViewItemDelegate *pl = new PlListViewItemDelegate(); PlListViewItemDelegate *pl = new PlListViewItemDelegate();
setItemDelegate( pl ); 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