16#ifndef QGSMODELUNDOCOMMAND_H
17#define QGSMODELUNDOCOMMAND_H
22#include <QUndoCommand>
24class QgsProcessingModelAlgorithm;
36class GUI_EXPORT QgsModelUndoCommand :
public QUndoCommand
39 QgsModelUndoCommand( QgsProcessingModelAlgorithm *model,
const QString &text,
int id = 0, QUndoCommand *parent
SIP_TRANSFERTHIS =
nullptr );
44 void saveAfterState();
46 int id()
const override;
49 bool mergeWith(
const QUndoCommand *other )
override;
53 bool mFirstRun =
true;
55 QgsProcessingModelAlgorithm *mModel =
nullptr;
56 QVariant mBeforeState;