fixed case insensitive sorting in Keyring, and cleanup dead code

This commit is contained in:
csoler 2019-01-06 20:58:32 +01:00
parent ba57ddfef9
commit b7340ef7ee
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
4 changed files with 15 additions and 260 deletions

View file

@ -48,7 +48,7 @@ QVariant pgpid_item_model::headerData(int section, Qt::Orientation orientation,
return QString(tr("Name of the profile"));
break;
case COLUMN_I_AUTH_PEER:
return QString(tr("This column indicates trust level and whether you signed the profile PGP key"));
return QString(tr("This column indicates the trust level you indicated and whether you signed the profile PGP key"));
break;
case COLUMN_PEER_AUTH_ME:
return QString(tr("Did that peer sign your own profile PGP key"));
@ -234,7 +234,7 @@ QVariant pgpid_item_model::data(const QModelIndex &index, int role) const
}
else
{
return tr(" - ");
return tr("Denied");
}
}
break;

View file

@ -33,6 +33,12 @@ class pgpid_item_proxy :
public:
pgpid_item_proxy(QObject *parent = nullptr);
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override
{
return left.data(Qt::DisplayRole).toString().toUpper() < right.data(Qt::DisplayRole).toString().toUpper();
}
public slots:
void use_only_trusted_keys(bool val);