- Rewrote a lot of code concerning finishedTorrents code. It was optimized and should be safer too

This commit is contained in:
Christophe Dumez
2007-08-19 14:20:54 +00:00
parent de8c3158fe
commit 5231f5a22b
5 changed files with 133 additions and 67 deletions

View File

@@ -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);