mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
- FEATURE: Allow to drag'n drop plugin to list for install/update
- Added some debug
This commit is contained in:
parent
e3214a9b6a
commit
2c27f952e2
5 changed files with 101 additions and 53 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue