UI bugfixes
[groove] / grooveprogressbar.cpp
1 #include "grooveprogressbar.h"
2 #if defined(Q_WS_MAEMO_5) || defined(Q_WS_HILDON)
3 #include "qmaemo5rotator.h"
4 #endif
5 grooveProgressBar::grooveProgressBar(QWidget *parent) :
6     QDialog(parent)
7 {
8     bar = new QProgressBar();
9     bar->setMaximum(100);
10     bar->setValue(0);
11     lay = new QHBoxLayout();
12     lay->addWidget(bar);
13     this->setLayout(lay);
14     this->setWindowTitle("Downloading /  Buffering");
15     //rot = new QMaemo5Rotator(QMaemo5Rotator::AutomaticBehavior,this);
16 }
17 void grooveProgressBar::setMaximum(int maximum)
18 {
19     bar->setMaximum(maximum);
20 }
21 int grooveProgressBar::maximum()
22 {
23    return bar->maximum();
24 }
25
26 void grooveProgressBar::setValue(int position)
27 {
28     bar->setValue(position);
29 }