added dragging support back in
This commit is contained in:
parent
149b9a6766
commit
dfb62a2174
1 changed files with 5 additions and 1 deletions
|
|
@ -299,6 +299,7 @@ PlaylistView::setPixmaps (Skin *skin)
|
||||||
update ();
|
update ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
PlaylistView::mouseDoubleClickEvent (QMouseEvent *event)
|
PlaylistView::mouseDoubleClickEvent (QMouseEvent *event)
|
||||||
{
|
{
|
||||||
|
|
@ -325,7 +326,10 @@ PlaylistView::mouseMoveEvent (QMouseEvent *event)
|
||||||
QModelIndex mouseIndex = indexAt (event->pos ());
|
QModelIndex mouseIndex = indexAt (event->pos ());
|
||||||
QModelIndexList sel = selectedIndexes ();
|
QModelIndexList sel = selectedIndexes ();
|
||||||
|
|
||||||
if (mouseIndex.row () < 0 || sel.empty())
|
if (mouseIndex.row () < 0)
|
||||||
|
startDrag(Qt::CopyAction);
|
||||||
|
|
||||||
|
if (sel.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (mouseIndex != currentIndex () && m_old_selection.isEmpty()) {
|
if (mouseIndex != currentIndex () && m_old_selection.isEmpty()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue