Changeset View
Changeset View
Standalone View
Standalone View
src/project/projecttab.cpp
Show First 20 Lines • Show All 316 Lines • ▼ Show 20 Line(s) | 313 | { | |||
---|---|---|---|---|---|
317 | if (m_progressBar->value() != total && m_legacyUnitsCount > 0) | 317 | if (m_progressBar->value() != total && m_legacyUnitsCount > 0) | ||
318 | m_progressBar->setValue(total); | 318 | m_progressBar->setValue(total); | ||
319 | if (m_progressBar->maximum() < qMax(total,m_legacyUnitsCount)) | 319 | if (m_progressBar->maximum() < qMax(total,m_legacyUnitsCount)) | ||
320 | m_progressBar->setMaximum(qMax(total,m_legacyUnitsCount)); | 320 | m_progressBar->setMaximum(qMax(total,m_legacyUnitsCount)); | ||
321 | m_progressBar->setVisible(!done); | 321 | m_progressBar->setVisible(!done); | ||
322 | if (done) | 322 | if (done) | ||
323 | m_legacyUnitsCount = total; | 323 | m_legacyUnitsCount = total; | ||
324 | 324 | | |||
325 | statusBarItems.insert(ID_STATUS_TOTAL, i18nc("@info:status message entries","Total: %1", total)); | 325 | statusBarItems.insert(ID_STATUS_TOTAL, i18nc("@info:status message entries","Total: %1", QLocale().toString(total))); | ||
326 | reflectNonApprovedCount(fuzzy, total); | 326 | reflectNonApprovedCount(fuzzy, total); | ||
327 | reflectUntranslatedCount(untranslated, total); | 327 | reflectUntranslatedCount(untranslated, total); | ||
328 | } | 328 | } | ||
329 | 329 | | |||
330 | void ProjectTab::initStatusBarProgress() | 330 | void ProjectTab::initStatusBarProgress() | ||
331 | { | 331 | { | ||
332 | if (m_legacyUnitsCount > 0) | 332 | if (m_legacyUnitsCount > 0) | ||
333 | { | 333 | { | ||
Show All 17 Lines |