GH-1053 add back update progress dialog
This commit is contained in:
parent
6310f6569c
commit
d8caab515a
35 changed files with 151 additions and 63 deletions
|
@ -48,12 +48,8 @@ void SequentialTask::subTaskProgress(qint64 current, qint64 total)
|
|||
{
|
||||
if(total == 0)
|
||||
{
|
||||
setProgress(0);
|
||||
setProgress(0, 100);
|
||||
return;
|
||||
}
|
||||
auto dcurrent = (double) current;
|
||||
auto dtotal = (double) total;
|
||||
auto partial = ((dcurrent / dtotal) * 100.0f)/* / double(m_queue.size())*/;
|
||||
// auto bigpartial = double(m_currentIndex) * 100.0f / double(m_queue.size());
|
||||
setProgress(partial);
|
||||
setProgress(current, total);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue