|
|
@ -149,7 +149,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis |
|
|
|
vSplitter->setCollapsible(0, true); |
|
|
|
vSplitter->setCollapsible(0, true); |
|
|
|
vSplitter->setCollapsible(1, false); |
|
|
|
vSplitter->setCollapsible(1, false); |
|
|
|
tabs->addTab(vSplitter, QIcon(QString::fromUtf8(":/Icons/oxygen/folder-remote.png")), tr("Transfers")); |
|
|
|
tabs->addTab(vSplitter, QIcon(QString::fromUtf8(":/Icons/oxygen/folder-remote.png")), tr("Transfers")); |
|
|
|
connect(transferList, SIGNAL(torrentStatusUpdate(uint,uint,uint,uint)), this, SLOT(updateNbTorrents(uint,uint,uint,uint))); |
|
|
|
connect(transferList, SIGNAL(torrentStatusUpdate(uint,uint,uint,uint,uint)), this, SLOT(updateNbTorrents(uint,uint,uint,uint,uint))); |
|
|
|
vboxLayout->addWidget(tabs); |
|
|
|
vboxLayout->addWidget(tabs); |
|
|
|
|
|
|
|
|
|
|
|
// Transfer list slots
|
|
|
|
// Transfer list slots
|
|
|
@ -313,9 +313,10 @@ void GUI::displayRSSTab(bool enable) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void GUI::updateNbTorrents(unsigned int nb_downloading, unsigned int nb_seeding, unsigned int nb_active, unsigned int nb_inactive) { |
|
|
|
void GUI::updateNbTorrents(unsigned int nb_downloading, unsigned int nb_seeding, unsigned int nb_active, unsigned int nb_inactive, unsigned int nb_paused) { |
|
|
|
Q_UNUSED(nb_downloading); |
|
|
|
Q_UNUSED(nb_downloading); |
|
|
|
Q_UNUSED(nb_seeding); |
|
|
|
Q_UNUSED(nb_seeding); |
|
|
|
|
|
|
|
Q_UNUSED(nb_paused); |
|
|
|
tabs->setTabText(0, tr("Transfers (%1)").arg(QString::number(nb_inactive+nb_active))); |
|
|
|
tabs->setTabText(0, tr("Transfers (%1)").arg(QString::number(nb_inactive+nb_active))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|