Commit dbd51095 authored by Arnold Dumas's avatar Arnold Dumas

Port from K3URL to KUrl.

REVIEW: 115772
parent 71c55f65
......@@ -1045,8 +1045,9 @@ void Playlist::contentsDragEnterEvent(QDragEnterEvent *e)
setDropHighlighter(false);
setDropVisualizer(true);
KUrl::List urls;
if(!K3URLDrag::decode(e, urls) || urls.isEmpty()) {
const KUrl::List urls = KUrl::List::fromMimeData(e->mimeData());
if (urls.isEmpty()) {
e->ignore();
return;
}
......@@ -1057,7 +1058,7 @@ void Playlist::contentsDragEnterEvent(QDragEnterEvent *e)
bool Playlist::acceptDrag(QDropEvent *e) const
{
return CoverDrag::isCover(e->mimeData()) || K3URLDrag::canDecode(e);
return CoverDrag::isCover(e->mimeData()) || KUrl::List::canDecode(e->mimeData());
}
void Playlist::decode(const QMimeData *s, PlaylistItem *item)
......
......@@ -18,7 +18,6 @@
#include <kicon.h>
#include <kiconloader.h>
#include <k3urldrag.h>
#include <kmessagebox.h>
#include <kmenu.h>
#include <kaction.h>
......@@ -504,7 +503,7 @@ void PlaylistBox::contentsDragMoveEvent(QDragMoveEvent *e)
//
// Otherwise, do not accept the event.
if(!K3URLDrag::canDecode(e)) {
if (!KUrl::List::canDecode(e->mimeData())) {
e->setAccepted(false);
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment