mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-22 05:30:44 +00:00
Fix Summary Recalc progress bar
This commit is contained in:
parent
58da6d882a
commit
204425473f
@ -2346,6 +2346,7 @@ void MainWindow::doReprocessEvents()
|
|||||||
if (qprogress) {
|
if (qprogress) {
|
||||||
qprogress->setValue(0);
|
qprogress->setValue(0);
|
||||||
qprogress->setVisible(true);
|
qprogress->setVisible(true);
|
||||||
|
qprogress->setMaximum(daycount);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isopen;
|
bool isopen;
|
||||||
@ -2394,10 +2395,9 @@ void MainWindow::doReprocessEvents()
|
|||||||
}
|
}
|
||||||
|
|
||||||
date = date.addDays(-1);
|
date = date.addDays(-1);
|
||||||
// if (qprogress && (++idx % 10) ==0) {
|
|
||||||
qprogress->setValue(0 + (float(++idx) / float(daycount) * 100.0));
|
qprogress->setValue(++idx);
|
||||||
QApplication::processEvents();
|
QApplication::processEvents();
|
||||||
// }
|
|
||||||
|
|
||||||
} while (date >= first);
|
} while (date >= first);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user