made interlacing configurable

This commit is contained in:
itsmattkc
2018-10-14 02:20:25 +11:00
parent 1d96363aaa
commit fc28900c9c
6 changed files with 98 additions and 17 deletions
+28
View File
@@ -1591,3 +1591,31 @@ void EditSequenceCommand::update() {
set_sequence(seq);
}
}
SetInt::SetInt(int* pointer, int new_value) :
p(pointer),
oldval(*pointer),
newval(new_value)
{}
void SetInt::undo() {
*p = oldval;
}
void SetInt::redo() {
*p = newval;
}
SetString::SetString(QString* pointer, QString new_value) :
p(pointer),
oldval(*pointer),
newval(new_value)
{}
void SetString::undo() {
*p = oldval;
}
void SetString::redo() {
*p = newval;
}