Added type role and column & refactored the JsonParser in the process.
This commit is contained in:
@ -127,6 +127,10 @@ QVariant CsvParser::parseItemValue(const int role, const std::string& valueStrin
|
||||
if (STRING_ROLES.contains(role)) {
|
||||
/// string values
|
||||
result = QString::fromStdString(valueString);
|
||||
} else if (TYPE_ROLES.contains(role)) {
|
||||
/// type values
|
||||
// TODO validate string is allowed
|
||||
result = QString::fromStdString(valueString);
|
||||
} else if (INT_ROLES.contains(role)) {
|
||||
/// int values
|
||||
|
||||
|
||||
Reference in New Issue
Block a user