- some more signal / slot fixing

This commit is contained in:
Christophe Dumez 2008-12-26 22:11:40 +00:00
parent d57062a45a
commit 41c6a847b9
3 changed files with 2 additions and 3 deletions

View file

@ -37,7 +37,6 @@ FinishedTorrents::FinishedTorrents(QObject *parent, bittorrent *BTSession) : par
setupUi(this);
actionStart->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/play.png")));
actionPause->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/pause.png")));
connect(BTSession, SIGNAL(addedTorrent(QTorrentHandle&)), this, SLOT(torrentAdded(QTorrentHandle&)));
finishedListModel = new QStandardItemModel(0,6);
finishedListModel->setHeaderData(F_NAME, Qt::Horizontal, tr("Name", "i.e: file name"));
finishedListModel->setHeaderData(F_SIZE, Qt::Horizontal, tr("Size", "i.e: file size"));

View file

@ -1258,7 +1258,7 @@ void bittorrent::readAlerts() {
if(h.is_valid()){
QString hash = h.hash();
qDebug("%s have just finished checking", hash.toUtf8().data());
emit torrentFinishedChecking(hash);
emit torrentFinishedChecking(h);
}
}
a = s->pop_alert();

View file

@ -176,7 +176,7 @@ class bittorrent : public QObject {
void newDownloadedTorrent(QString path, QString url);
void updateFileSize(QString hash);
void downloadFromUrlFailure(QString url, QString reason);
void torrentFinishedChecking(QString hash);
void torrentFinishedChecking(QTorrentHandle& h);
void forceUnfinishedListUpdate();
void forceFinishedListUpdate();
};