Fix ProgressBar rendering following STEP reader enhancement
This commit is contained in:
committed by
wmayer
parent
e3477eee1b
commit
8fd823da1f
@@ -208,15 +208,16 @@ void Sequencer::setValue(int step)
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (thr != currentThread) {
|
||||
QMetaObject::invokeMethod(d->bar, "setValue", Qt::/*Blocking*/QueuedConnection,
|
||||
int elapsed = d->progressTime.elapsed();
|
||||
if (elapsed > 100) {
|
||||
d->progressTime.restart();
|
||||
if (thr != currentThread) {
|
||||
QMetaObject::invokeMethod(d->bar, "setValue", Qt::/*Blocking*/QueuedConnection,
|
||||
QGenericReturnArgument(), Q_ARG(int,step));
|
||||
if (d->bar->isVisible())
|
||||
showRemainingTime();
|
||||
}
|
||||
else {
|
||||
int elapsed = d->progressTime.restart();
|
||||
if (elapsed > 500) {
|
||||
if (d->bar->isVisible())
|
||||
showRemainingTime();
|
||||
}
|
||||
else {
|
||||
d->bar->setValue(step);
|
||||
if (d->bar->isVisible())
|
||||
showRemainingTime();
|
||||
|
||||
Reference in New Issue
Block a user