Use QStringLiteral

This commit is contained in:
Jonas Kvinge
2024-04-09 23:20:26 +02:00
parent 3cfffa5fbb
commit 58944993b8
233 changed files with 3885 additions and 3885 deletions

View File

@@ -76,16 +76,16 @@ void MultiLoadingIndicator::UpdateText() {
if (task.progress_max > 0) {
int percentage = static_cast<int>(static_cast<float>(task.progress) / static_cast<float>(task.progress_max) * 100.0F);
task_text += QString(" %1%").arg(percentage);
task_text += QStringLiteral(" %1%").arg(percentage);
}
strings << task_text;
}
text_ = strings.join(", ");
text_ = strings.join(QStringLiteral(", "));
if (!text_.isEmpty()) {
text_[0] = text_[0].toUpper();
text_ += "...";
text_ += QLatin1String("...");
}
emit TaskCountChange(static_cast<int>(tasks.count()));