also check to see if kurl knows about this stuff

svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=675295
This commit is contained in:
Aaron J. Seigo 2007-06-13 22:11:49 +00:00
parent 3d126ae09b
commit bbea8b07a0

View File

@ -215,7 +215,8 @@ void Corona::addKaramba(const KUrl& path)
void Corona::dragEnterEvent( QGraphicsSceneDragDropEvent *event)
{
kDebug() << "Corona::dragEnterEvent(QGraphicsSceneDragDropEvent* event)" << endl;
if (event->mimeData()->hasFormat("text/x-plasmoidservicename")) {
if (event->mimeData()->hasFormat("text/x-plasmoidservicename") ||
KUrl::List::canDecode(event->mimeData())) {
event->acceptProposedAction();
//TODO Create the applet, move to mouse position then send the
// following event to lock it to the mouse