Skip to content
Permalink
Browse files
Fix snapping widget localization
  • Loading branch information
elpaso committed Oct 22, 2021
1 parent 51be34e commit f6e922e34f8c09e731c6a78f2daab29df481c0d1
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/app/qgssnappingwidget.cpp
  2. +1 −1 src/app/qgssnappingwidget.h
@@ -216,12 +216,12 @@ QgsSnappingWidget::QgsSnappingWidget( QgsProject *project, QgsMapCanvas *canvas,
connect( mTypeButton, &QToolButton::triggered, this, &QgsSnappingWidget::typeButtonTriggered );

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

// units
mUnitsComboBox = new QComboBox();
@@ -158,7 +158,7 @@ class APP_EXPORT QgsSnappingWidget : public QWidget
QToolButton *mTypeButton = nullptr;
QAction *mTypeAction = nullptr; // hide widget does not work on toolbar, action needed
QList< QAction * > mSnappingFlagActions;
QDoubleSpinBox *mToleranceSpinBox = nullptr;
QgsDoubleSpinBox *mToleranceSpinBox = nullptr;
QgsScaleWidget *mMinScaleWidget = nullptr;
QgsScaleWidget *mMaxScaleWidget = nullptr;
QAction *mToleranceAction = nullptr; // hide widget does not work on toolbar, action needed

0 comments on commit f6e922e

Please sign in to comment.