Skip to content

Commit

Permalink
access column header from source model
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeBardian committed Mar 25, 2024
1 parent 71583db commit 068e83e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/attributetable/qgsattributetablefiltermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ QVariant QgsAttributeTableFilterModel::headerData( int section, Qt::Orientation
if ( mColumnMapping.at( section ) == -1 && role == Qt::DisplayRole )
return tr( "Actions" );
else
return QSortFilterProxyModel::headerData( section, orientation, role );
{
const int sourceSection = mapColumnToSource( section );
return sourceModel()->headerData( sourceSection, orientation, role );
}
}
else
{
Expand Down

0 comments on commit 068e83e

Please sign in to comment.