Skip to content
Permalink
Browse files

[composer] Add a featureChanged signal for when the current atlas fea…

…ture changes (sponsored by City of Uster, Switzerland)
  • Loading branch information
nyalldawson committed Apr 28, 2014
1 parent 85c2e14 commit ca186c78ee205ece2737d672585adfe970f72590
@@ -187,4 +187,8 @@ public:

/**Is emitted when atlas rendering has ended*/
void renderEnded();

/**Is emitted when the current atlas feature changes*/
void featureChanged( QgsFeature* feature );

};
@@ -411,6 +411,10 @@ void QgsAtlasComposition::prepareForFeature( int featureI )
// generate filename for current feature
evalFeatureFilename();

emit featureChanged( &mCurrentFeature );

// TODO - move these updates to label/shape/page item

// evaluate label expressions
QList<QgsComposerLabel*> labels;
mComposition->composerItems( labels );
@@ -217,6 +217,9 @@ class CORE_EXPORT QgsAtlasComposition : public QObject
/**Is emitted when atlas rendering has ended*/
void renderEnded();

/**Is emitted when the current atlas feature changes*/
void featureChanged( QgsFeature* feature );

private:
/**Updates the filename expression*/
void updateFilenameExpression();

0 comments on commit ca186c7

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