From d710ea785b2db3ed4d91743e44cc3b15488f1b65 Mon Sep 17 00:00:00 2001 From: Yoann Quenach de Quivillic Date: Sat, 7 Dec 2024 00:09:39 +0100 Subject: [PATCH] layout update dpi on editingFinished --- src/gui/layout/qgslayoutpropertieswidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/layout/qgslayoutpropertieswidget.cpp b/src/gui/layout/qgslayoutpropertieswidget.cpp index 7543ded7d98f..175637d265de 100644 --- a/src/gui/layout/qgslayoutpropertieswidget.cpp +++ b/src/gui/layout/qgslayoutpropertieswidget.cpp @@ -87,7 +87,7 @@ QgsLayoutPropertiesWidget::QgsLayoutPropertiesWidget( QWidget *parent, QgsLayout connect( mLeftMarginSpinBox, static_cast( &QDoubleSpinBox::valueChanged ), this, &QgsLayoutPropertiesWidget::resizeMarginsChanged ); connect( mResizePageButton, &QPushButton::clicked, this, &QgsLayoutPropertiesWidget::resizeToContents ); - connect( mResolutionSpinBox, static_cast( &QSpinBox::valueChanged ), this, &QgsLayoutPropertiesWidget::dpiChanged ); + connect( mResolutionSpinBox, &QSpinBox::editingFinished, this, [this] { dpiChanged( mResolutionSpinBox->value() ); } ); mReferenceMapComboBox->setCurrentLayout( mLayout ); mReferenceMapComboBox->setItemType( QgsLayoutItemRegistry::LayoutMap );