void QgsMapToolSimplify::setTolerance( double tolerance ) { mTolerance = tolerance; QSettings settings; settings.setValue( "/digitizing/simplify_tolerance", tolerance ); if ( !mSelectedFeatures.isEmpty() ) updateSimplificationPreview(); }
void QgsMapToolSimplify::setToleranceUnits( int units ) { mToleranceUnits = ( QgsTolerance::UnitType ) units; QSettings settings; settings.setValue( "/digitizing/simplify_tolerance_units", units ); if ( !mSelectedFeatures.isEmpty() ) updateSimplificationPreview(); }
void QgsMapToolSimplify::setToleranceUnits( QgsTolerance::UnitType units ) { mToleranceUnits = units; QgsSettings settings; settings.setValue( QStringLiteral( "digitizing/simplify_tolerance_units" ), units ); if ( !mSelectedFeatures.isEmpty() ) updateSimplificationPreview(); }