Drag & drop from the file list to the playlist

This commit is contained in:
David Sansome 2009-12-24 20:33:31 +00:00
parent 930fbaeac1
commit 0e2f542fcb
2 changed files with 15 additions and 2 deletions

View File

@ -90,7 +90,20 @@
</layout>
</item>
<item>
<widget class="QListView" name="list"/>
<widget class="QListView" name="list">
<property name="dragEnabled">
<bool>true</bool>
</property>
<property name="dragDropMode">
<enum>QAbstractItemView::DragOnly</enum>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
</widget>
</item>
</layout>
</widget>

View File

@ -167,7 +167,7 @@ bool Playlist::dropMimeData(const QMimeData* data, Qt::DropAction action, int ro
if (!song.is_valid())
continue;
songs << songs;
songs << song;
}
InsertSongs(songs, row);