From fcd5e2cb84f66ab21258e9087ac5247bd5f4dfa8 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Wed, 4 Aug 2021 19:30:12 +0800 Subject: [PATCH] fix: disable auto fit after clicking actual size button --- app/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp index ec60071..418c8f8 100644 --- a/app/mainwindow.cpp +++ b/app/mainwindow.cpp @@ -535,6 +535,7 @@ QSize MainWindow::sizeHint() const void MainWindow::on_actionActualSize_triggered() { m_graphicsView->resetScale(); + m_graphicsView->setEnableAutoFitInView(false); } void MainWindow::on_actionToggleMaximize_triggered()