made pasting effects undoable

This commit is contained in:
itsmattkc
2018-12-02 19:38:38 +11:00
parent 967cc01077
commit fbded93e39
5 changed files with 29 additions and 43 deletions
+3 -12
View File
@@ -88,7 +88,7 @@ private:
class AddEffectCommand : public QUndoCommand {
public:
AddEffectCommand(Clip* c, const EffectMeta* e);
AddEffectCommand(Clip* c, Effect *e, const EffectMeta* m);
~AddEffectCommand();
void undo();
void redo();
@@ -598,19 +598,10 @@ private:
void* old_data;
};
/*class MoveGizmo : public QUndoCommand {
class ReloadEffectsCommand : public QUndoCommand {
public:
MoveGizmo(Effect* e, EffectGizmo* g, int x_movement, int y_movement, double tc);
void undo();
void redo();
private:
Effect* effect;
EffectGizmo* gizmo;
int x;
int y;
double timecode;
bool done;
bool old_changed;
};*/
};
#endif // UNDO_H