forked from blue/squawk
some further work on omemo, far from done yet
This commit is contained in:
parent
6f32e99593
commit
77dd28b600
18 changed files with 161 additions and 43 deletions
|
@ -134,5 +134,11 @@ void Models::Keys::setTrustLevel(int row, Shared::TrustLevel level) {
|
|||
dataChanged(index, index, {Keys::Dirty});
|
||||
}
|
||||
|
||||
void Models::Keys::clear() {
|
||||
beginResetModel();
|
||||
keys.clear();
|
||||
modified.clear();
|
||||
endResetModel();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ public:
|
|||
~Keys();
|
||||
|
||||
void addKey(const Shared::KeyInfo& info);
|
||||
void clear();
|
||||
|
||||
QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const override;
|
||||
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue