refactor: Introduce ApplicationController to centralize logic

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-02-13 17:29:04 -07:00
parent 87c354f79d
commit fa5852b8db
6 changed files with 230 additions and 92 deletions

View File

@@ -168,7 +168,7 @@ void ViewportWidget::wheelEvent(QWheelEvent *event)
update();
}
void ViewportWidget::startSketch(SketchPlane plane)
void ViewportWidget::onSketchModeStarted(SketchPlane plane)
{
m_currentPlane = plane;
@@ -237,7 +237,7 @@ void ViewportWidget::startSketch(SketchPlane plane)
animGroup->start(QAbstractAnimation::DeleteWhenStopped);
}
void ViewportWidget::saveSketch()
void ViewportWidget::onSketchModeEnded()
{
auto* animGroup = new QParallelAnimationGroup(this);