Commit e2ac72ff authored by Mike Kremer's avatar Mike Kremer

Memory deletings are handled by Qt itself. So no need here.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8589 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 28cf114c
......@@ -136,11 +136,12 @@ void ProcessManagerWidget::addJob(QString _id, QString _description,
QTableWidgetItem* name = new QTableWidgetItem(_id);
QTableWidgetItem* desc = new QTableWidgetItem(_description);
JobCancelButton* button = new JobCancelButton("Cancel", _id);
QProgressBar* progressBar = new QProgressBar();
JobCancelButton* button = new JobCancelButton("Cancel", _id, this->processList);
QProgressBar* progressBar = new QProgressBar(this->processList);
progressBar->setMaximum(_maxSteps);
progressBar->setMinimum(_minSteps);
progressBar->setValue(0);
progressBar->setTextVisible(true);
// Connect cancel button to event handler
connect(button, SIGNAL(pressed()), this, SLOT(cancelButtonPressed()));
......@@ -198,12 +199,6 @@ void ProcessManagerWidget::removeJob(QString _id) {
this->processList->removeRow(job.row);
// Delete widget items
delete job.id;
delete job.description;
delete job.progress;
delete job.button;
// Remove from local map
processMap_.erase(_id);
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment