]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/playlist/standardpanel.cpp
Initial drag and drop support for Qt
[vlc] / modules / gui / qt4 / components / playlist / standardpanel.cpp
index 74f6b4893304e5b79e24d6a393d52d38d63fdfaf..57b4b69311de286c73b554c6a1eb0cde92f2c001 100644 (file)
@@ -56,7 +56,11 @@ StandardPLPanel::StandardPLPanel( BasePlaylistWidget *_parent,
     view->header()->resizeSection( 2, 60 );
     view->header()->setSortIndicatorShown( true );
     view->header()->setClickable( true );
+
     view->setSelectionMode( QAbstractItemView::ExtendedSelection );
+    view->setDragEnabled(true);
+    view->setAcceptDrops(true);
+    view->setDropIndicatorShown(true);
 
     CONNECT( view, activated( const QModelIndex& ) ,
              model,activateItem( const QModelIndex& ) );