Add "Filter files" field in new torrent dialog

PR #16344.
This commit is contained in:
thalieht
2022-06-04 07:57:50 +03:00
committed by GitHub
parent ab0c82965c
commit 2f9c5cdb22
3 changed files with 34 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ namespace Ui
class AddNewTorrentDialog;
}
class LineEdit;
class PropListDelegate;
class TorrentContentFilterModel;
class TorrentFileGuard;
@@ -92,6 +93,7 @@ private slots:
void contentLayoutChanged();
void doNotDeleteTorrentClicked(bool checked);
void renameSelectedFile();
void handleFilterTextChanged(const QString &filter);
void accept() override;
void reject() override;
@@ -123,6 +125,7 @@ private:
int m_savePathIndex = -1;
int m_downloadPathIndex = -1;
bool m_useDownloadPath = false;
LineEdit *m_filterLine = nullptr;
std::unique_ptr<TorrentFileGuard> m_torrentGuard;
BitTorrent::AddTorrentParams m_torrentParams;