Move a few torrent context menu actions into "Torrent options" dialog

Automatic torrent management
Save path
Category
Download in sequential order
Download first and last pieces first

closes #15447, closes #14064
This commit is contained in:
thalieht
2021-09-11 00:56:56 +03:00
parent 6de67fe81f
commit 046d6f3bc1
5 changed files with 277 additions and 106 deletions

View File

@@ -58,6 +58,9 @@ public slots:
void accept() override;
private slots:
void handleCategoryChanged(int index);
void handleTMMChanged();
void handleUpSpeedLimitChanged();
void handleDownSpeedLimitChanged();
@@ -70,14 +73,22 @@ private:
QVector<BitTorrent::TorrentID> m_torrentIDs;
Ui::TorrentOptionsDialog *m_ui;
SettingValue<QSize> m_storeDialogSize;
QStringList m_categories;
QString m_currentCategoriesString;
bool m_allSameCategory = true;
struct
{
QString savePath;
QString category;
qreal ratio;
int seedingTime;
int upSpeedLimit;
int downSpeedLimit;
Qt::CheckState autoTMM;
Qt::CheckState disableDHT;
Qt::CheckState disablePEX;
Qt::CheckState disableLSD;
Qt::CheckState sequential;
Qt::CheckState firstLastPieces;
} m_initialValues;
};