Fix default time.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2019-03-30 11:13:53 +02:00
parent 46bf68521e
commit 4f6735808b

View File

@ -67,7 +67,7 @@ DialogLayoutProgress::DialogLayoutProgress(QElapsedTimer timer, qint64 timeout,
{ {
const qint64 elapsed = m_timer.elapsed(); const qint64 elapsed = m_timer.elapsed();
const int timeout = static_cast<int>(m_timeout - elapsed); const int timeout = static_cast<int>(m_timeout - elapsed);
QTime t; QTime t(0, 0);
t = t.addMSecs(timeout); t = t.addMSecs(timeout);
ui->labelTimeLeft->setText(tr("Time left: %1").arg(t.toString())); ui->labelTimeLeft->setText(tr("Time left: %1").arg(t.toString()));
ui->progressBar->setValue(static_cast<int>(elapsed/1000)); ui->progressBar->setValue(static_cast<int>(elapsed/1000));