help plasmoids getting all their events

* until dragLeaveEvent gets special treatment do the default
* drop events over items should(?) only be handled by those



svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=700652
This commit is contained in:
Friedrich W. H. Kossebau 2007-08-16 05:32:54 +00:00
parent 0231bb68fe
commit cee77d79d9

View File

@ -279,6 +279,8 @@ void Corona::dragLeaveEvent(QGraphicsSceneDragDropEvent *event)
// kDebug() << "Corona::dragLeaveEvent(QGraphicsSceneDragDropEvent* event)";
//TODO If an established Applet is dragged out of the Corona, remove it and
// create a QDrag type thing to keep the Applet's settings
QGraphicsScene::dragLeaveEvent(event);
}
void Corona::dragMoveEvent(QGraphicsSceneDragDropEvent *event)
@ -291,6 +293,11 @@ void Corona::dragMoveEvent(QGraphicsSceneDragDropEvent *event)
void Corona::dropEvent(QGraphicsSceneDragDropEvent *event)
{
if (itemAt(event->scenePos())) {
QGraphicsScene::dropEvent(event);
return;
}
//kDebug() << "Corona::dropEvent(QDropEvent* event)";
if (event->mimeData()->hasFormat(d->mimetype)) {
QString plasmoidName;