Commit d5471b7c authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Make model used for list of groups a single-column model

This works around a bug in Qt which causes screen readers to read wrong
model items. See commit 6de644bf in libkleo for a similar fix for the
key selection combo.

GnuPG-bug-id: 6095
parent 11ac18df
......@@ -55,6 +55,24 @@ public:
// compiler-generated copy ctor is fine!
return new ProxyModel(*this);
int columnCount(const QModelIndex &parent = {}) const override
// pretend that there is only one column to workaround a bug in
// QAccessibleTable which provides the accessibility interface for the
// list view
return 1;
QVariant data(const QModelIndex &idx, int role) const override
if (!idx.isValid()) {
return {};
return AbstractKeyListSortFilterProxyModel::data(index(idx.row(), KeyList::Summary), role);
struct Selection
......@@ -119,7 +137,6 @@ public:
groupsFilterModel->sort(KeyList::Summary, Qt::AscendingOrder);
ui.groupsList = new QListView(q);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment