Menu

[465617]: / src / doubleprogressbar.cpp  Maximize  Restore  History

Download this file

19 lines (14 with data), 502 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#include "doubleprogressbar.h"
DoubleProgressBar::DoubleProgressBar(QWidget *parent): QProgressBar(parent) {
this->dValue = (double)this->value();
connect(this, SIGNAL(valueChanged(int)), this, SLOT(setDoubleValue(int)));
}
DoubleProgressBar::~DoubleProgressBar() {
}
void DoubleProgressBar::setDoubleValue(double doubleValue) {
this->dValue = doubleValue;
this->setValue((int)doubleValue);
}
void DoubleProgressBar::setDoubleValue(int value) {
setDoubleValue((double)value);
}
MongoDB Logo MongoDB