Fix default time.
--HG-- branch : feature
This commit is contained in:
parent
46bf68521e
commit
4f6735808b
|
@ -67,7 +67,7 @@ DialogLayoutProgress::DialogLayoutProgress(QElapsedTimer timer, qint64 timeout,
|
|||
{
|
||||
const qint64 elapsed = m_timer.elapsed();
|
||||
const int timeout = static_cast<int>(m_timeout - elapsed);
|
||||
QTime t;
|
||||
QTime t(0, 0);
|
||||
t = t.addMSecs(timeout);
|
||||
ui->labelTimeLeft->setText(tr("Time left: %1").arg(t.toString()));
|
||||
ui->progressBar->setValue(static_cast<int>(elapsed/1000));
|
||||
|
|
Loading…
Reference in New Issue
Block a user