added replace function for pasting effects

This commit is contained in:
itsmattkc
2018-12-21 10:34:42 +11:00
parent c65e2557b5
commit c62d4803fb
3 changed files with 68 additions and 6 deletions
+2 -1
View File
@@ -89,7 +89,7 @@ private:
class AddEffectCommand : public QUndoCommand {
public:
AddEffectCommand(Clip* c, Effect *e, const EffectMeta* m);
AddEffectCommand(Clip* c, Effect *e, const EffectMeta* m, int insert_pos = -1);
~AddEffectCommand();
void undo();
void redo();
@@ -97,6 +97,7 @@ private:
Clip* clip;
const EffectMeta* meta;
Effect* ref;
int pos;
bool done;
bool old_project_changed;
};