Simple implementation of CSV file import. Successfully imported items are appended to the model.
This commit is contained in:
@ -50,5 +50,13 @@ static int GET_ROLE_FOR_COLUMN(const int column) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
static QList<QString> GET_HEADER_NAMES() {
|
||||
QList<QString> result;
|
||||
for (const UserRoles& role : USER_FACING_ROLES) {
|
||||
const QString headerName = ROLE_NAMES.value(role);
|
||||
result.append(headerName);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
#endif // METADATA_H
|
||||
|
||||
Reference in New Issue
Block a user