Skip to content

Commit ed005c0

Browse files
committedApr 8, 2015
Add QgisInterface::composerRemoved signal
1 parent 77ede9c commit ed005c0

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed
 

‎python/gui/qgisinterface.sip

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,11 @@ class QgisInterface : QObject
500500
* This signal is emitted before a new composer instance is going to be removed
501501
*/
502502
void composerWillBeRemoved( QgsComposerView* v );
503+
504+
/** This signal is emitted when a composer instance has been removed
505+
@note added in version 2.9 */
506+
void composerRemoved( QgsComposerView* v );
507+
503508
/**
504509
* This signal is emitted when the initialization is complete
505510
*/

‎src/app/qgisappinterface.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ QgisAppInterface::QgisAppInterface( QgisApp * _qgis )
6060
this, SIGNAL( composerAdded( QgsComposerView* ) ) );
6161
connect( qgis, SIGNAL( composerWillBeRemoved( QgsComposerView* ) ),
6262
this, SIGNAL( composerWillBeRemoved( QgsComposerView* ) ) );
63+
connect( qgis, SIGNAL( composerRemoved( QgsComposerView* ) ),
64+
this, SIGNAL( composerRemoved( QgsComposerView* ) ) );
6365
connect( qgis, SIGNAL( initializationCompleted() ),
6466
this, SIGNAL( initializationCompleted() ) );
6567
connect( qgis, SIGNAL( newProject() ),

‎src/gui/qgisinterface.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,11 @@ class GUI_EXPORT QgisInterface : public QObject
556556
* This signal is emitted before a new composer instance is going to be removed
557557
*/
558558
void composerWillBeRemoved( QgsComposerView* v );
559+
560+
/** This signal is emitted when a composer instance has been removed
561+
@note added in version 2.9 */
562+
void composerRemoved( QgsComposerView* v );
563+
559564
/**
560565
* This signal is emitted when the initialization is complete
561566
*/

0 commit comments

Comments
 (0)
Please sign in to comment.