16#ifndef QGSMODELUNDOCOMMAND_H 
   17#define QGSMODELUNDOCOMMAND_H 
   21#include <QUndoCommand> 
   23class QgsProcessingModelAlgorithm;
 
   35class GUI_EXPORT QgsModelUndoCommand : 
public QUndoCommand
 
   38    QgsModelUndoCommand( QgsProcessingModelAlgorithm *model, 
const QString &text, 
int id = 0, QUndoCommand *parent 
SIP_TRANSFERTHIS = 
nullptr );
 
   43    void saveAfterState();
 
   45    int id() 
const override;
 
   48    bool mergeWith( 
const QUndoCommand *other ) 
override;
 
   53    bool mFirstRun = 
true;
 
   55    QgsProcessingModelAlgorithm *mModel = 
nullptr;
 
   56    QVariant mBeforeState;