summaryrefslogtreecommitdiff
path: root/src/ProgressWidget.cc
blob: 0e98286d83095b47592a15e09a1fcb2cec029636 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "ProgressWidget.h"

ProgressWidget::ProgressWidget(QWidget *parent)
	:QWidget(parent)
{
	setupUi(this);
	this->wascanceled = false;
	connect(this->stopButton, SIGNAL(clicked()), this, SLOT(cancel()));
}

bool ProgressWidget::wasCanceled() const
{
	return this->wascanceled;
}

void ProgressWidget::cancel()
{
	this->wascanceled = true;
}

void ProgressWidget::setRange(int minimum, int maximum)
{
	this->progressBar->setRange(minimum, maximum);
}

void ProgressWidget::setValue(int progress)
{
	this->progressBar->setValue(progress);
}
contact: Jan Huwald // Impressum