feature: added functionality to revoke api configs
This commit is contained in:
parent
c2b17c128d
commit
95121c06e2
5 changed files with 234 additions and 25 deletions
|
@ -39,6 +39,9 @@ QVariant ApiCountryModel::data(const QModelIndex &index, int role) const
|
|||
case CountryImageCodeRole: {
|
||||
return countryInfo.countryCode.toUpper();
|
||||
}
|
||||
case IsIssuedRole: {
|
||||
return isIssued;
|
||||
}
|
||||
}
|
||||
|
||||
return QVariant();
|
||||
|
@ -103,5 +106,6 @@ QHash<int, QByteArray> ApiCountryModel::roleNames() const
|
|||
roles[CountryNameRole] = "countryName";
|
||||
roles[CountryCodeRole] = "countryCode";
|
||||
roles[CountryImageCodeRole] = "countryImageCode";
|
||||
roles[IsIssuedRole] = "isIssued";
|
||||
return roles;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue