mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-03 05:21:57 +01:00
Drag & drop from the file list to the playlist
This commit is contained in:
parent
930fbaeac1
commit
0e2f542fcb
@ -90,7 +90,20 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<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>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -167,7 +167,7 @@ bool Playlist::dropMimeData(const QMimeData* data, Qt::DropAction action, int ro
|
|||||||
if (!song.is_valid())
|
if (!song.is_valid())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
songs << songs;
|
songs << song;
|
||||||
}
|
}
|
||||||
|
|
||||||
InsertSongs(songs, row);
|
InsertSongs(songs, row);
|
||||||
|
Loading…
Reference in New Issue
Block a user