Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1978 from m-kuhn/composerremoved
Add QgisInterface::composerRemoved signal
  • Loading branch information
nyalldawson committed Apr 8, 2015
2 parents 77ede9c + ed005c0 commit e8b06c7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/gui/qgisinterface.sip
Expand Up @@ -500,6 +500,11 @@ class QgisInterface : QObject
* This signal is emitted before a new composer instance is going to be removed
*/
void composerWillBeRemoved( QgsComposerView* v );

/** This signal is emitted when a composer instance has been removed
@note added in version 2.9 */
void composerRemoved( QgsComposerView* v );

/**
* This signal is emitted when the initialization is complete
*/
Expand Down
2 changes: 2 additions & 0 deletions src/app/qgisappinterface.cpp
Expand Up @@ -60,6 +60,8 @@ QgisAppInterface::QgisAppInterface( QgisApp * _qgis )
this, SIGNAL( composerAdded( QgsComposerView* ) ) );
connect( qgis, SIGNAL( composerWillBeRemoved( QgsComposerView* ) ),
this, SIGNAL( composerWillBeRemoved( QgsComposerView* ) ) );
connect( qgis, SIGNAL( composerRemoved( QgsComposerView* ) ),
this, SIGNAL( composerRemoved( QgsComposerView* ) ) );
connect( qgis, SIGNAL( initializationCompleted() ),
this, SIGNAL( initializationCompleted() ) );
connect( qgis, SIGNAL( newProject() ),
Expand Down
5 changes: 5 additions & 0 deletions src/gui/qgisinterface.h
Expand Up @@ -556,6 +556,11 @@ class GUI_EXPORT QgisInterface : public QObject
* This signal is emitted before a new composer instance is going to be removed
*/
void composerWillBeRemoved( QgsComposerView* v );

/** This signal is emitted when a composer instance has been removed
@note added in version 2.9 */
void composerRemoved( QgsComposerView* v );

/**
* This signal is emitted when the initialization is complete
*/
Expand Down

0 comments on commit e8b06c7

Please sign in to comment.