|
|
@ -136,9 +136,8 @@ properties::properties(QWidget *parent, bittorrent *BTSession, QTorrentHandle &h |
|
|
|
updateInfosTimer->start(3000); |
|
|
|
updateInfosTimer->start(3000); |
|
|
|
progressBar = new RealProgressBar(this); |
|
|
|
progressBar = new RealProgressBar(this); |
|
|
|
progressBar->setForegroundColor(Qt::blue); |
|
|
|
progressBar->setForegroundColor(Qt::blue); |
|
|
|
QVBoxLayout *vbox = new QVBoxLayout(this); |
|
|
|
progressBarVbox = new QVBoxLayout(RealProgressBox); |
|
|
|
vbox->addWidget(progressBar); |
|
|
|
progressBarVbox->addWidget(progressBar); |
|
|
|
RealProgressBox->setLayout(vbox); |
|
|
|
|
|
|
|
progressBarUpdater = new RealProgressBarThread(progressBar, h); |
|
|
|
progressBarUpdater = new RealProgressBarThread(progressBar, h); |
|
|
|
progressBarUpdater->start(); |
|
|
|
progressBarUpdater->start(); |
|
|
|
// progressBarUpdater->refresh();
|
|
|
|
// progressBarUpdater->refresh();
|
|
|
@ -153,6 +152,7 @@ properties::~properties(){ |
|
|
|
delete PropListModel; |
|
|
|
delete PropListModel; |
|
|
|
delete progressBarUpdater; |
|
|
|
delete progressBarUpdater; |
|
|
|
delete progressBar; |
|
|
|
delete progressBar; |
|
|
|
|
|
|
|
delete progressBarVbox; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void properties::addFilesToTree(const torrent_file *root, QStandardItem *parent) { |
|
|
|
void properties::addFilesToTree(const torrent_file *root, QStandardItem *parent) { |
|
|
|