Browse Source

- some more signal / slot fixing

adaptive-webui-19844
Christophe Dumez 16 years ago
parent
commit
41c6a847b9
  1. 1
      src/FinishedTorrents.cpp
  2. 2
      src/bittorrent.cpp
  3. 2
      src/bittorrent.h

1
src/FinishedTorrents.cpp

@ -37,7 +37,6 @@ FinishedTorrents::FinishedTorrents(QObject *parent, bittorrent *BTSession) : par @@ -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"));

2
src/bittorrent.cpp

@ -1258,7 +1258,7 @@ void bittorrent::readAlerts() { @@ -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();

2
src/bittorrent.h

@ -176,7 +176,7 @@ class bittorrent : public QObject { @@ -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();
};

Loading…
Cancel
Save