Skip to content

Commit 4a3a814

Browse files
committed
[attrtable] Show row numbers when first column is action widget
1 parent 95f8139 commit 4a3a814

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/gui/attributetable/qgsattributetablefiltermodel.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ QVariant QgsAttributeTableFilterModel::headerData( int section, Qt::Orientation
9595
return QSortFilterProxyModel::headerData( section, orientation, role );
9696
}
9797
else
98-
return QSortFilterProxyModel::headerData( section, orientation, role );
98+
{
99+
int sourceSection = mapToSource( index( section, mColumnMapping.at( 0 ) == -1 ? 1 : 0 ) ).row();
100+
return sourceModel()->headerData( sourceSection, orientation, role );
101+
}
99102
}
100103

101104
int QgsAttributeTableFilterModel::actionColumnIndex() const

0 commit comments

Comments
 (0)