completed zoom tool

This commit is contained in:
itsmattkc
2019-09-19 01:39:09 +10:00
parent 088b0543eb
commit 9b312abf46
4 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -39,9 +39,9 @@ void TimelineView::ZoomTool::MouseRelease(QMouseEvent *event)
{
if (event->modifiers() & Qt::AltModifier) {
// Zoom out if the user clicks while holding Alt
parent()->SetScale(parent()->scale_ * 0.5);
emit parent()->UserSetScale(parent()->scale_ * 0.5);
} else {
// Otherwise zoom in
parent()->SetScale(parent()->scale_ * 2);
emit parent()->UserSetScale(parent()->scale_ * 2);
}
}