Allow the Group column to be toggled for entry view

This allows to show/hide the group column both in normal and search
mode, finding a compromise for issue #6163
This commit is contained in:
Xavier Valls 2021-04-16 16:05:40 +02:00 committed by Jonathan White
parent 805574cac1
commit 7fe0e2629c

View File

@ -96,7 +96,7 @@ EntryView::EntryView(QWidget* parent)
// column index as data
m_columnActions = new QActionGroup(this);
m_columnActions->setExclusive(false);
for (int visualIndex = 1; visualIndex < header()->count(); ++visualIndex) {
for (int visualIndex = 0; visualIndex < header()->count(); ++visualIndex) {
int logicalIndex = header()->logicalIndex(visualIndex);
QString caption = m_model->headerData(logicalIndex, Qt::Horizontal, Qt::DisplayRole).toString();
if (caption.isEmpty()) {