Skip to content
Permalink
Browse files

[attrtable] Show row numbers when first column is action widget

  • Loading branch information
m-kuhn committed Jun 3, 2016
1 parent 95f8139 commit 4a3a814d087c82f869b42a4d1375ee0f92d045fc
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/gui/attributetable/qgsattributetablefiltermodel.cpp
@@ -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

0 comments on commit 4a3a814

Please sign in to comment.
You can’t perform that action at this time.