[vlc-devel] commit: Qt: allow multiple selection in iconView (Jean-Baptiste Kempf )
git version control
git at videolan.org
Tue Jan 26 12:40:18 CET 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jan 26 12:39:36 2010 +0100| [9225ec114fc2438e844d91b16f321df7739b29dd] | committer: Jean-Baptiste Kempf
Qt: allow multiple selection in iconView
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9225ec114fc2438e844d91b16f321df7739b29dd
---
modules/gui/qt4/components/playlist/icon_view.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/icon_view.cpp b/modules/gui/qt4/components/playlist/icon_view.cpp
index 49ce2b1..da4bf85 100644
--- a/modules/gui/qt4/components/playlist/icon_view.cpp
+++ b/modules/gui/qt4/components/playlist/icon_view.cpp
@@ -97,10 +97,12 @@ PlIconView::PlIconView( PLModel *model, QWidget *parent ) : QListView( parent )
setViewMode( QListView::IconMode );
setMovement( QListView::Static );
setResizeMode( QListView::Adjust );
- setGridSize( QSize( 100, 100 ) );
+ setGridSize( QSize( RECT_SIZE, RECT_SIZE ) );
setUniformItemSizes( true );
setSpacing( ITEMS_SPACING );
setWrapping( true );
+ setSelectionMode( QAbstractItemView::ExtendedSelection );
+ setAcceptDrops( true );
PlListViewItemDelegate *pl = new PlListViewItemDelegate();
setItemDelegate( pl );
More information about the vlc-devel
mailing list