Add "Export .torrent" action

This commit is contained in:
Chocobo1
2022-04-16 14:57:21 +08:00
parent 71b1cb3b9c
commit a90ade0446
7 changed files with 97 additions and 4 deletions

View File

@@ -34,9 +34,9 @@
#include <QTreeView>
#include "base/bittorrent/infohash.h"
#include "base/path.h"
class MainWindow;
class Path;
class TransferListModel;
class TransferListSortModel;
@@ -124,6 +124,7 @@ private:
QVector<BitTorrent::Torrent *> getSelectedTorrents() const;
void askAddTagsForSelection();
void editTorrentTrackers();
void exportTorrent();
void confirmRemoveAllTagsForSelection();
QStringList askTagsForSelection(const QString &dialogTitle);
void applyToSelectedTorrents(const std::function<void (BitTorrent::Torrent *const)> &fn);