Progressbar fix
[groove] / grooveprogressbar.cpp
1 #include "grooveprogressbar.h"
2
3 grooveProgressBar::grooveProgressBar(QDialog *parent) :
4     QDialog(parent)
5 {
6     bar = new QProgressBar();
7     bar->setMaximum(100);
8     bar->setValue(0);
9     lay = new QHBoxLayout();
10     lay->addWidget(bar);
11     this->setLayout(lay);
12     this->setWindowTitle("Downloading /  Buffering");
13 }
14 void grooveProgressBar::setMaximum(int maximum)
15 {
16     bar->setMaximum(maximum);
17 }
18 int grooveProgressBar::maximum()
19 {
20    return bar->maximum();
21 }
22
23 void grooveProgressBar::setValue(int position)
24 {
25     bar->setValue(position);
26 }