Fix weird base strings and reduce concatenation

This commit is contained in:
Edward Jones committed 2018-03-13 20:40:39 +00:00
1 parent e718e9f5e5
commit 3def6a3bc4
13 files changed
+26 -25

No files matched your search

+4 -3
View File
@@ -31,9 +31,10 @@ void CsvParserModel::setFilename(const QString& filename) {
}
QString CsvParserModel::getFileInfo(){
QString a(tr("%n byte(s), ", nullptr, getFileSize()));
a.append(tr("%n row(s), ", nullptr, getCsvRows()));
a.append(tr("%n column(s)", nullptr, qMax(0, getCsvCols() - 1)));
QString a(tr("%1, %2, %3", "file info: bytes, rows, columns")
.arg(tr("%n byte(s)", nullptr, getFileSize()))
.arg(tr("%n row(s)", nullptr, getCsvRows()))
.arg(tr("%n column(s)", nullptr, qMax(0, getCsvCols() - 1))));
return a;
}