Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
juk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
David Planella
juk
Commits
dbd51095
Commit
dbd51095
authored
Feb 16, 2014
by
Arnold Dumas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port from K3URL to KUrl.
REVIEW: 115772
parent
71c55f65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
playlist.cpp
playlist.cpp
+4
-3
playlistbox.cpp
playlistbox.cpp
+1
-2
No files found.
playlist.cpp
View file @
dbd51095
...
...
@@ -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
())
||
K
3URLDrag
::
canDecode
(
e
);
return
CoverDrag
::
isCover
(
e
->
mimeData
())
||
K
Url
::
List
::
canDecode
(
e
->
mimeData
()
);
}
void
Playlist
::
decode
(
const
QMimeData
*
s
,
PlaylistItem
*
item
)
...
...
playlistbox.cpp
View file @
dbd51095
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment