examples/network/torrent/mainwindow.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   173     uploadLimitLabel->setFixedSize(QSize(fm.width(tr("99999 KB/s")), fm.lineSpacing()));
   173     uploadLimitLabel->setFixedSize(QSize(fm.width(tr("99999 KB/s")), fm.lineSpacing()));
   174 
   174 
   175     // Set up connections
   175     // Set up connections
   176     connect(torrentView, SIGNAL(itemSelectionChanged()),
   176     connect(torrentView, SIGNAL(itemSelectionChanged()),
   177             this, SLOT(setActionsEnabled()));
   177             this, SLOT(setActionsEnabled()));
   178     connect(torrentView, SIGNAL(fileDropped(const QString &)),
   178     connect(torrentView, SIGNAL(fileDropped(QString)),
   179             this, SLOT(acceptFileDrop(const QString &)));
   179             this, SLOT(acceptFileDrop(QString)));
   180     connect(uploadLimitSlider, SIGNAL(valueChanged(int)),
   180     connect(uploadLimitSlider, SIGNAL(valueChanged(int)),
   181             this, SLOT(setUploadLimit(int)));
   181             this, SLOT(setUploadLimit(int)));
   182     connect(downloadLimitSlider, SIGNAL(valueChanged(int)),
   182     connect(downloadLimitSlider, SIGNAL(valueChanged(int)),
   183             this, SLOT(setDownloadLimit(int)));
   183             this, SLOT(setDownloadLimit(int)));
   184     connect(newTorrentAction, SIGNAL(triggered()),
   184     connect(newTorrentAction, SIGNAL(triggered()),