Added static GET_HEADER_FOR_COLUMN(const int column) function.
This commit is contained in:
@ -86,4 +86,10 @@ static QList<QString> GET_HEADER_NAMES() {
|
||||
return result;
|
||||
}
|
||||
|
||||
static QString GET_HEADER_FOR_COLUMN(const int column) {
|
||||
const UserRoles role = GET_ROLE_FOR_COLUMN(column);
|
||||
const QString headerName = ROLE_NAMES.value(role);
|
||||
return headerName;
|
||||
}
|
||||
|
||||
#endif // METADATA_H
|
||||
|
||||
Reference in New Issue
Block a user