mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
- Rewrote a lot of code concerning finishedTorrents code. It was optimized and should be safer too
This commit is contained in:
@@ -38,7 +38,6 @@ class FinishedTorrents : public QWidget, public Ui::seeding{
|
||||
QObject *parent;
|
||||
bittorrent *BTSession;
|
||||
FinishedListDelegate *finishedListDelegate;
|
||||
QStringList finishedSHAs;
|
||||
QStandardItemModel *finishedListModel;
|
||||
unsigned int nbFinished;
|
||||
|
||||
@@ -46,14 +45,13 @@ class FinishedTorrents : public QWidget, public Ui::seeding{
|
||||
FinishedTorrents(QObject *parent, bittorrent *BTSession);
|
||||
~FinishedTorrents();
|
||||
// Methods
|
||||
QStringList getFinishedSHAs();
|
||||
QTreeView* getFinishedList();
|
||||
QStandardItemModel* getFinishedListModel();
|
||||
bool loadColWidthFinishedList();
|
||||
int getRowFromHash(QString hash) const;
|
||||
|
||||
public slots:
|
||||
void addFinishedSHA(QString sha);
|
||||
void addFinishedTorrent(QString hash);
|
||||
void updateFinishedList();
|
||||
void deleteFromFinishedList(QString hash);
|
||||
void showProperties(const QModelIndex &index);
|
||||
|
||||
Reference in New Issue
Block a user