qt: Use PeerTableSortProxy for sorting peer table

This commit is contained in:
Hennadii Stepanov
2021-02-22 09:51:21 +02:00
parent df2d165ba9
commit 778a64af20
5 changed files with 21 additions and 78 deletions

View File

@@ -194,10 +194,7 @@ QVariant PeerTableModel::data(const QModelIndex &index, int role) const
} // no default case, so the compiler can warn about missing cases
assert(false);
} else if (role == StatsRole) {
switch (index.column()) {
case NetNodeId: return QVariant::fromValue(rec);
default: return QVariant();
}
return QVariant::fromValue(rec);
}
return QVariant();