2011-04-30 13:12:15 +00:00
|
|
|
Geometry pProgressBar::minimumGeometry() {
|
|
|
|
return { 0, 0, 0, 25 };
|
|
|
|
}
|
|
|
|
|
2011-02-27 09:11:01 +00:00
|
|
|
void pProgressBar::setPosition(unsigned position) {
|
|
|
|
qtProgressBar->setValue(position);
|
|
|
|
}
|
|
|
|
|
|
|
|
void pProgressBar::constructor() {
|
|
|
|
qtWidget = qtProgressBar = new QProgressBar;
|
|
|
|
qtProgressBar->setRange(0, 100);
|
|
|
|
qtProgressBar->setTextVisible(false);
|
2012-04-24 13:13:42 +00:00
|
|
|
|
|
|
|
pWidget::synchronizeState();
|
|
|
|
setPosition(progressBar.state.position);
|
|
|
|
}
|
|
|
|
|
|
|
|
void pProgressBar::destructor() {
|
|
|
|
delete qtProgressBar;
|
|
|
|
qtWidget = qtProgressBar = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void pProgressBar::orphan() {
|
|
|
|
destructor();
|
|
|
|
constructor();
|
2011-02-27 09:11:01 +00:00
|
|
|
}
|