some thoughts about fonts, lastInteraction and label into keyDelegate

This commit is contained in:
Blue 2023-01-11 23:45:38 +03:00
parent 2aed8a1209
commit 15fb4bbd62
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
15 changed files with 166 additions and 171 deletions

View file

@ -44,11 +44,21 @@ QVariant UI::KeysModel::data(const QModelIndex& index, int role) const {
switch (role) {
case Qt::DisplayRole:
case Label:
answer = keys[i]->label;
break;
case FingerPrint:
answer = keys[i]->fingerPrint;
break;
case TrustLevel:
answer = static_cast<uint8_t>(keys[i]->trustLevel);
break;
case LastInteraction:
answer = keys[i]->lastInteraction;
break;
case Dirty:
answer = false;
break;
}
return answer;