Better handle of parser status messages (critical/not critical)

Use of messageWidget for displaying parser status messages
setRootGroup assigns the right label to the root db folder
test uses portable QTemporaryFile instead of hardcoded file
This commit is contained in:
seatedscribe committed 2017-03-05 21:27:29 +01:00
1 parent a7e358c27d
commit 41f9c3d2a1
10 files changed
+150 -124

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ void CsvParserModel::setFilename(const QString& filename) {
QString CsvParserModel::getFileInfo(){
QString a(QString::number(getFileSize()).append(tr(" byte, ")));
a.append(QString::number(getCsvRows())).append(tr(" rows, "));
a.append(QString::number((getCsvCols()-1))).append(tr(" columns"));
a.append(QString::number(qMax(0, getCsvCols()-1))).append(tr(" columns"));
return a;
}