trying to fix undo bug
This commit is contained in:
+3
-3
@@ -29,7 +29,7 @@ class TransformEffect : public Effect {
|
||||
public:
|
||||
TransformEffect(Clip* c);
|
||||
void process_gl(int* anchor_x, int* anchor_y);
|
||||
Effect* copy();
|
||||
Effect* copy(Clip* c);
|
||||
|
||||
QSpinBox* position_x;
|
||||
QSpinBox* position_y;
|
||||
@@ -52,7 +52,7 @@ class VolumeEffect : public Effect {
|
||||
public:
|
||||
VolumeEffect(Clip* c);
|
||||
void process_audio(uint8_t* samples, int nb_bytes);
|
||||
Effect* copy();
|
||||
Effect* copy(Clip* c);
|
||||
void load(QXmlStreamReader* stream);
|
||||
void save(QXmlStreamWriter* stream);
|
||||
|
||||
@@ -63,7 +63,7 @@ class PanEffect : public Effect {
|
||||
public:
|
||||
PanEffect(Clip* c);
|
||||
void process_audio(uint8_t* samples, int nb_bytes);
|
||||
Effect* copy();
|
||||
Effect* copy(Clip* c);
|
||||
void load(QXmlStreamReader* stream);
|
||||
void save(QXmlStreamWriter* stream);
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@ PanEffect::PanEffect(Clip* c) : Effect(c) {
|
||||
pan_val->setValue(0);
|
||||
}
|
||||
|
||||
Effect* PanEffect::copy() {
|
||||
PanEffect* p = new PanEffect(parent_clip);
|
||||
Effect* PanEffect::copy(Clip* c) {
|
||||
PanEffect* p = new PanEffect(c);
|
||||
p->pan_val->setValue(pan_val->value());
|
||||
return p;
|
||||
}
|
||||
|
||||
@@ -93,8 +93,8 @@ TransformEffect::TransformEffect(Clip* c) : Effect(c) {
|
||||
connect(uniform_scale_box, SIGNAL(toggled(bool)), this, SLOT(field_changed()));
|
||||
}
|
||||
|
||||
Effect* TransformEffect::copy() {
|
||||
TransformEffect* t = new TransformEffect(parent_clip);
|
||||
Effect* TransformEffect::copy(Clip* c) {
|
||||
TransformEffect* t = new TransformEffect(c);
|
||||
t->position_x->setValue(position_x->value());
|
||||
t->position_y->setValue(position_y->value());
|
||||
t->scale_x->setValue(scale_x->value());
|
||||
|
||||
@@ -25,8 +25,8 @@ VolumeEffect::VolumeEffect(Clip* c) : Effect(c) {
|
||||
volume_val->setValue(100);
|
||||
}
|
||||
|
||||
Effect* VolumeEffect::copy() {
|
||||
VolumeEffect* v = new VolumeEffect(parent_clip);
|
||||
Effect* VolumeEffect::copy(Clip* c) {
|
||||
VolumeEffect* v = new VolumeEffect(c);
|
||||
v->volume_val->setValue(volume_val->value());
|
||||
return v;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user