- Added bandwidth allocation to the right click menu on torrents

This commit is contained in:
Christophe Dumez
2007-04-10 10:05:04 +00:00
parent b08d08512f
commit 6428fd4ae0
3 changed files with 32 additions and 3 deletions

View File

@@ -31,6 +31,8 @@
using namespace libtorrent;
class BandwidthAllocationDialog : public QDialog, private Ui_bandwidth_dlg {
Q_OBJECT
public:
BandwidthAllocationDialog(QWidget *parent, bool uploadMode, bittorrent *BTSession, QStringList hashes): QDialog(parent), uploadMode(uploadMode){
setupUi(this);
@@ -71,6 +73,7 @@ class BandwidthAllocationDialog : public QDialog, private Ui_bandwidth_dlg {
// bandwidthSlider->setValue(-1);
// }
connect(buttonBox, SIGNAL(accepted()), this, SLOT(setBandwidth()));
show();
}
~BandwidthAllocationDialog(){