Commit 48e4eb19 authored by Justus Winter's avatar Justus Winter

Add a field 'Validity' to the key model

Add a new field for the validity of keys, and populate it with
validity and compliance information.
Signed-off-by: default avatarJustus Winter <>
parent 7257004b
......@@ -195,6 +195,7 @@ QVariant AbstractKeyListModel::headerData(int section, Qt::Orientation o, int ro
switch (section) {
case PrettyName: return i18n("Name");
case PrettyEMail: return i18n("E-Mail");
case Validity: return i18n("Validity");
case ValidFrom: return i18n("Valid From");
case ValidUntil: return i18n("Valid Until");
case TechnicalDetails: return i18n("Details");
......@@ -246,6 +247,8 @@ QVariant AbstractKeyListModel::data(const QModelIndex &index, int role) const
} else {
return QVariant();
case Validity:
return Formatting::complianceStringShort(key);
case ValidFrom:
if (role == Qt::EditRole) {
return Formatting::creationDate(key);
......@@ -72,6 +72,7 @@ public:
Icon = PrettyName // which column shall the icon be displayed in?
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment