forked from blue/squawk
context menu to trust or distrust keys
This commit is contained in:
parent
b72a837754
commit
73d83f55af
5 changed files with 144 additions and 18 deletions
|
@ -40,6 +40,8 @@ public:
|
|||
QHash<int, QByteArray> roleNames() const override;
|
||||
QModelIndex index(int row, int column, const QModelIndex & parent) const override;
|
||||
|
||||
std::deque<Shared::KeyInfo> modifiedKeys() const;
|
||||
|
||||
enum Roles {
|
||||
Label = Qt::UserRole + 1,
|
||||
FingerPrint,
|
||||
|
@ -48,8 +50,13 @@ public:
|
|||
Dirty
|
||||
};
|
||||
|
||||
public slots:
|
||||
void revertKey(int index);
|
||||
void setTrustLevel(int index, Shared::TrustLevel level);
|
||||
|
||||
private:
|
||||
std::deque<Shared::KeyInfo*> keys;
|
||||
std::map<int, Shared::KeyInfo*> modified;
|
||||
|
||||
private:
|
||||
static const QHash<int, QByteArray> roles;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue