chore: use const reference for a lambda slot

This commit is contained in:
Gary Wang 2022-06-04 17:09:12 +08:00
parent b033370d8e
commit 75da5e8ca5
No known key found for this signature in database
GPG Key ID: 5D30A4F15EA78760

View File

@ -74,7 +74,7 @@ MainWindow::MainWindow(QWidget *parent)
m_gv->fitInView(m_gv->sceneRect(), Qt::KeepAspectRatio);
connect(m_graphicsView, &GraphicsView::navigatorViewRequired,
this, [ = ](bool required, QTransform tf){
this, [ = ](bool required, const QTransform & tf){
m_gv->setTransform(GraphicsView::resetScale(tf));
m_gv->fitInView(m_gv->sceneRect(), Qt::KeepAspectRatio);
m_gv->setVisible(required);