Skip to content

Commit

Permalink
[attrtable] Show row numbers when first column is action widget
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 3, 2016
1 parent 95f8139 commit 4a3a814
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/attributetable/qgsattributetablefiltermodel.cpp
Expand Up @@ -95,7 +95,10 @@ QVariant QgsAttributeTableFilterModel::headerData( int section, Qt::Orientation
return QSortFilterProxyModel::headerData( section, orientation, role );
}
else
return QSortFilterProxyModel::headerData( section, orientation, role );
{
int sourceSection = mapToSource( index( section, mColumnMapping.at( 0 ) == -1 ? 1 : 0 ) ).row();

This comment has been minimized.

Copy link
@rouault

rouault Jun 20, 2016

Contributor

@m-kuhn
In case you want to check my fix ( 1cd7808 ) is appropriate, this commit caused http://hub.qgis.org/issues/15047
Not sure why the failed test didn't trigger on Travis: perhaps because it relies on a non-debug build of QT ?

return sourceModel()->headerData( sourceSection, orientation, role );
}
}

int QgsAttributeTableFilterModel::actionColumnIndex() const
Expand Down

0 comments on commit 4a3a814

Please sign in to comment.