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;
52 bool mFirstRun =
true;
54 QgsProcessingModelAlgorithm *mModel =
nullptr;
55 QVariant mBeforeState;