Add drag support to torrent content widget

Now qbt supports dragging items from torrent content widget to another app.

Closes #5860.
PR #21569.
This commit is contained in:
Chocobo1
2024-10-12 14:49:17 +08:00
committed by GitHub
parent 6418033cc8
commit c4eeb4a14a
3 changed files with 49 additions and 1 deletions

View File

@@ -37,6 +37,7 @@
#include "torrentcontentmodelitem.h"
class QFileIconProvider;
class QMimeData;
class QModelIndex;
class QVariant;
@@ -86,6 +87,8 @@ signals:
private:
using ColumnInterval = IndexInterval<int>;
QMimeData *mimeData(const QModelIndexList &indexes) const override;
QStringList mimeTypes() const override;
void populate();
void updateFilesProgress();
void updateFilesPriorities();