Page 1 of 1

Playlist Management Is A Bit Of A Pain...

PostPosted: Tue Sep 25, 2018 2:30 am
by quasigiani
Anyone have any insight on why "playlist.cpp" seems to have disabled dragging items in the playlist (though, from my reading of QT documentation "listView->setDragEnabled" should default to true anyhow) and therefore seems to want instead to insisting on the miserable click-to-move-up click-to-move-down method of sorting?:
#define DRAG_ITEMS 0
...
#if DRAG_ITEMS
listView->setSelectionMode(QAbstractItemView::SingleSelection);
listView->setDragEnabled(true);
listView->setAcceptDrops(true);
listView->setDropIndicatorShown(true);
listView->setDragDropMode(QAbstractItemView::InternalMove);
#endif

Re: Playlist Management Is A Bit Of A Pain...

PostPosted: Tue Sep 25, 2018 7:46 pm
by rvm
It's disabled because it doesn't work correctly.

Re: Playlist Management Is A Bit Of A Pain...

PostPosted: Tue Sep 25, 2018 9:07 pm
by quasigiani
Okay, it doesn't work; so it's definitely an intentional and not just a remnant of some earlier bug-hunt.

Can you tell me if is a QT bug or something that is particular to SMPlayer's code?

Thanks.

(By the way, I really appreciate so much of the program -- it has, as far as I seen out side this one problem {the "misery" in my "miserable" is a 1st-world-complaint ~XD~}; I also appreciate how the code is so much cleaner than much of the rest of the stuff that I've seen.)