- FEATURE: Allow to drag'n drop plugin to list for install/update

- Added some debug
This commit is contained in:
Christophe Dumez 2007-09-02 09:01:22 +00:00
parent e3214a9b6a
commit 2c27f952e2
5 changed files with 101 additions and 53 deletions

View file

@ -553,6 +553,10 @@ void GUI::dropEvent(QDropEvent *event) {
// Decode if we accept drag 'n drop or not
void GUI::dragEnterEvent(QDragEnterEvent *event) {
QString mime;
foreach(mime, event->mimeData()->formats()){
qDebug("mimeData: %s", mime.toUtf8().data());
}
if (event->mimeData()->hasFormat(QString::fromUtf8("text/plain"))) {
event->acceptProposedAction();
}