several improvements

This commit is contained in:
itsmattkc
2018-10-13 13:08:20 +11:00
parent 2e577330b9
commit a285f10e6a
24 changed files with 179 additions and 57 deletions
+2 -6
View File
@@ -59,11 +59,7 @@ bool EffectControls::keyframe_focus() {
}
void EffectControls::set_zoom(bool in) {
if (in) {
zoom *= 2;
} else {
zoom *= 0.5;
}
zoom *= (in) ? 2 : 0.5;
update_keyframes();
}
@@ -94,7 +90,7 @@ void EffectControls::menu_select(QAction* q) {
}
void EffectControls::update_keyframes() {
if (ui->headers->isVisible()) ui->headers->update_zoom(zoom);
ui->headers->update_zoom(zoom);
ui->keyframeView->update();
}