This forum is deprecated. Please visit https://github.com/smplayer-dev/smplayer/discussions

Playlist Management Is A Bit Of A Pain...

Forum to talk about the development of SMPlayer (code, patches...).

Playlist Management Is A Bit Of A Pain...

Postby quasigiani » Tue Sep 25, 2018 2:30 am

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
quasigiani
 
Posts: 4
Joined: Tue Sep 25, 2018 2:15 am

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

Postby rvm » Tue Sep 25, 2018 7:46 pm

It's disabled because it doesn't work correctly.
rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España

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

Postby quasigiani » Tue Sep 25, 2018 9:07 pm

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.)
quasigiani
 
Posts: 4
Joined: Tue Sep 25, 2018 2:15 am


Return to Development

Who is online

Users browsing this forum: No registered users and 9 guests