25 QUndoCommand( text, parent ), mItem( item ), mComposition( c ), mState( s ), mFirstRun( true )
59 void QgsAddRemoveItemCommand::switchState()
61 if ( mState ==
Added )
void setDirty(bool b=true)
Flag the project as dirty (modified).
~QgsAddRemoveItemCommand()
QgsComposerModel * itemsModel()
Returns the items model attached to the composition.
A item that forms part of a map composition.
void setItemRestored(QgsComposerItem *item)
Restores an item to the composition.
void itemAdded(QgsComposerItem *item)
void removeItem(QGraphicsItem *item)
Graphics scene for map printing.
static QgsProject * instance()
Returns the QgsProject singleton instance.
QgsAddRemoveItemCommand(State s, QgsComposerItem *item, QgsComposition *c, const QString &text, QUndoCommand *parent=nullptr)
void setItemRemoved(QgsComposerItem *item)
Marks an item as removed from the composition.
void addItem(QGraphicsItem *item)
void itemRemoved(QgsComposerItem *item)