Skip to content
Permalink
Browse files

[composer] Refresh attribute table filter when atlas feature changes (f…

…ix #10651)
  • Loading branch information
nyalldawson committed Jun 23, 2014
1 parent cd3bdd7 commit 787f1a60d0770266c03178170b2f70fea9313c93
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/composer/qgscomposerattributetable.cpp
@@ -121,6 +121,9 @@ QgsComposerAttributeTable::QgsComposerAttributeTable( QgsComposition* compositio
{
//refresh table attributes when composition is refreshed
connect( mComposition, SIGNAL( refreshItemsTriggered() ), this, SLOT( refreshAttributes() ) );

//connect to atlas feature changes to update table rows
connect( &mComposition->atlasComposition(), SIGNAL( featureChanged( QgsFeature* ) ), this, SLOT( refreshAttributes() ) );
}
}

@@ -405,7 +408,7 @@ bool QgsComposerAttributeTable::getFeatureAttributes( QList<QgsAttributeMap> &at
if ( !selectionRect.isEmpty() )
req.setFilterRect( selectionRect );

req.setFlags( mShowOnlyVisibleFeatures ? QgsFeatureRequest::ExactIntersect : QgsFeatureRequest::NoGeometry );
req.setFlags( mShowOnlyVisibleFeatures ? QgsFeatureRequest::ExactIntersect : QgsFeatureRequest::NoFlags );

QgsFeature f;
int counter = 0;

0 comments on commit 787f1a6

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