Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit df10d07

Browse files
elpasogithub-actions[bot]
authored andcommittedDec 10, 2021
Fix snapping widget localization
1 parent cd268e5 commit df10d07

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎src/app/qgssnappingwidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,12 @@ QgsSnappingWidget::QgsSnappingWidget( QgsProject *project, QgsMapCanvas *canvas,
216216
connect( mTypeButton, &QToolButton::triggered, this, &QgsSnappingWidget::typeButtonTriggered );
217217

218218
// tolerance
219-
mToleranceSpinBox = new QDoubleSpinBox();
219+
mToleranceSpinBox = new QgsDoubleSpinBox();
220220
mToleranceSpinBox->setDecimals( 5 );
221221
mToleranceSpinBox->setMaximum( 99999999.990000 );
222222
mToleranceSpinBox->setToolTip( tr( "Snapping Tolerance in Defined Units" ) );
223223
mToleranceSpinBox->setObjectName( QStringLiteral( "SnappingToleranceSpinBox" ) );
224-
connect( mToleranceSpinBox, static_cast < void ( QDoubleSpinBox::* )( double ) > ( &QDoubleSpinBox::valueChanged ), this, &QgsSnappingWidget::changeTolerance );
224+
connect( mToleranceSpinBox, qOverload< double >( &QgsDoubleSpinBox::valueChanged ), this, &QgsSnappingWidget::changeTolerance );
225225

226226
// units
227227
mUnitsComboBox = new QComboBox();

‎src/app/qgssnappingwidget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class APP_EXPORT QgsSnappingWidget : public QWidget
158158
QToolButton *mTypeButton = nullptr;
159159
QAction *mTypeAction = nullptr; // hide widget does not work on toolbar, action needed
160160
QList< QAction * > mSnappingFlagActions;
161-
QDoubleSpinBox *mToleranceSpinBox = nullptr;
161+
QgsDoubleSpinBox *mToleranceSpinBox = nullptr;
162162
QgsScaleWidget *mMinScaleWidget = nullptr;
163163
QgsScaleWidget *mMaxScaleWidget = nullptr;
164164
QAction *mToleranceAction = nullptr; // hide widget does not work on toolbar, action needed

0 commit comments

Comments
 (0)
Please sign in to comment.