mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-14 00:55:46 -04:00
fixed case insensitive sorting in Keyring, and cleanup dead code
This commit is contained in:
parent
ba57ddfef9
commit
b7340ef7ee
4 changed files with 15 additions and 260 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue