kget
btdetailswidget.cpp
Go to the documentation of this file.
38 connect(m_transfer, SIGNAL(transferChangedEvent(TransferHandler*,TransferHandler::ChangesFlags)),
46 void BTDetailsWidget::slotTransferChanged(TransferHandler * transfer, TransferHandler::ChangesFlags flags)
59 seederLabel->setText((m_transfer->seedsConnected()!=-1 ? QString().setNum(m_transfer->seedsConnected()) : i18nc("not available", "n/a")) + " (" +
60 (m_transfer->seedsDisconnected()!=-1 ? QString().setNum(m_transfer->seedsDisconnected()) : i18nc("not available", "n/a")) + ')');
63 leecherLabel->setText((m_transfer->leechesConnected()!=-1 ? QString().setNum(m_transfer->leechesConnected()) : i18nc("not available", "n/a")) + " (" +
64 (m_transfer->leechesDisconnected()!=-1 ? QString().setNum(m_transfer->leechesDisconnected()) : i18nc("not available", "n/a")) + ')');
67 chunksDownloadedLabel->setText(m_transfer->chunksDownloaded()!=-1 ? QString().setNum(m_transfer->chunksDownloaded()) : i18nc("not available", "n/a"));
70 chunksExcludedLabel->setText(m_transfer->chunksExcluded()!=-1 ? QString().setNum(m_transfer->chunksExcluded()) : i18nc("not available", "n/a"));
73 chunksAllLabel->setText((m_transfer->chunksTotal()!=-1) ? QString().setNum(m_transfer->chunksTotal()) : i18nc("not available", "n/a"));
76 chunksLeftLabel->setText((m_transfer->chunksLeft()!=-1) ? QString().setNum(m_transfer->chunksLeft()) : i18nc("not available", "n/a"));
Definition: transfer.h:59
Definition: transfer.h:52
Definition: bttransfer.h:40
virtual void showEvent(QShowEvent *event)
Definition: btdetailswidget.cpp:85
Definition: bttransfer.h:44
Definition: bttransfer.h:41
int leechesDisconnected() const
Definition: bttransferhandler.h:43
int seedsDisconnected() const
Definition: bttransferhandler.h:41
Definition: bttransfer.h:46
Definition: bttransfer.h:42
Definition: transfer.h:56
BTDetailsWidget(BTTransferHandler *transfer)
Definition: btdetailswidget.cpp:18
Definition: bttransfer.h:43
Definition: transfer.h:55
void slotTransferChanged(TransferHandler *transfer, TransferHandler::ChangesFlags flags)
Definition: btdetailswidget.cpp:46
Definition: bttransferhandler.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.