rewrite nearly complete
This commit is contained in:
@@ -92,5 +92,5 @@ void BoolField::UpdateFromWidget(bool b)
|
||||
SetValueAt(Now(), b);
|
||||
|
||||
kdc->SetNewKeyframes();
|
||||
olive::UndoStack.push(kdc);
|
||||
olive::undo_stack.push(kdc);
|
||||
}
|
||||
|
||||
@@ -67,5 +67,5 @@ void ColorField::UpdateFromWidget(const QColor& c)
|
||||
SetValueAt(Now(), c);
|
||||
|
||||
kdc->SetNewKeyframes();
|
||||
olive::UndoStack.push(kdc);
|
||||
olive::undo_stack.push(kdc);
|
||||
}
|
||||
|
||||
@@ -87,5 +87,5 @@ void ComboField::UpdateFromWidget(int index)
|
||||
SetValueAt(Now(), items_.at(index).data);
|
||||
|
||||
kdc->SetNewKeyframes();
|
||||
olive::UndoStack.push(kdc);
|
||||
olive::undo_stack.push(kdc);
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ void DoubleField::UpdateFromWidget(double d)
|
||||
if (!ls->IsDragging() && kdc_ != nullptr) {
|
||||
kdc_->SetNewKeyframes();
|
||||
|
||||
olive::UndoStack.push(kdc_);
|
||||
olive::undo_stack.push(kdc_);
|
||||
|
||||
kdc_ = nullptr;
|
||||
}
|
||||
|
||||
@@ -62,5 +62,5 @@ void FileField::UpdateFromWidget(const QString &s)
|
||||
SetValueAt(Now(), s);
|
||||
|
||||
kdc->SetNewKeyframes();
|
||||
olive::UndoStack.push(kdc);
|
||||
olive::undo_stack.push(kdc);
|
||||
}
|
||||
|
||||
@@ -89,5 +89,5 @@ void FontField::UpdateFromWidget(const QString& s)
|
||||
SetValueAt(Now(), s);
|
||||
|
||||
kdc->SetNewKeyframes();
|
||||
olive::UndoStack.push(kdc);
|
||||
olive::undo_stack.push(kdc);
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ QWidget *StringField::CreateWidget(QWidget *existing)
|
||||
text_edit->setUndoRedoEnabled(true);
|
||||
|
||||
// the "2" is because the height needs one extra pixel of padding on the top and the bottom
|
||||
text_edit->setTextHeight(qCeil(text_edit->fontMetrics().lineSpacing()*olive::CurrentConfig.effect_textbox_lines
|
||||
text_edit->setTextHeight(qCeil(text_edit->fontMetrics().lineSpacing()*olive::config.effect_textbox_lines
|
||||
+ text_edit->document()->documentMargin()
|
||||
+ text_edit->document()->documentMargin() + 2));
|
||||
|
||||
@@ -95,5 +95,5 @@ void StringField::UpdateFromWidget(const QString &s)
|
||||
SetValueAt(Now(), s);
|
||||
|
||||
kdc->SetNewKeyframes();
|
||||
olive::UndoStack.push(kdc);
|
||||
olive::undo_stack.push(kdc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user