Skip to content
Permalink
Browse files
set value in qgis settings
  • Loading branch information
lbartoletti committed Apr 30, 2021
1 parent 96974d9 commit 76c0d11024211eb598b8ab2b3082eca1336a3168
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/app/options/qgsoptions.cpp
@@ -1072,6 +1072,11 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
mDefaultZValueSpinBox->setValue( QgsSettingsRegistryCore::settingsDigitizingDefaultZValue.value() );
mDefaultZValueSpinBox->setClearValue( QgsSettingsRegistryCore::settingsDigitizingDefaultZValue.defaultValue() );

mDefaultMValueSpinBox->setValue(
mSettings->value( QStringLiteral( "/qgis/digitizing/default_m_value" ), Qgis::DEFAULT_M_COORDINATE ).toDouble()
);
mDefaultMValueSpinBox->setClearValue( Qgis::DEFAULT_M_COORDINATE );

//default snap mode
mSnappingEnabledDefault->setChecked( QgsSettingsRegistryCore::settingsDigitizingDefaultSnapEnabled.value() );

@@ -1752,6 +1757,7 @@ void QgsOptions::saveOptions()
QgsSettingsRegistryCore::settingsDigitizingLineGhost.setValue( mLineGhostCheckBox->isChecked() );

QgsSettingsRegistryCore::settingsDigitizingDefaultZValue.setValue( mDefaultZValueSpinBox->value() );
QgsSettingsRegistryCore::settingsDigitizingDefaultMValue.setValue( mDefaultMValueSpinBox->value() );

//default snap mode
QgsSettingsRegistryCore::settingsDigitizingDefaultSnapEnabled.setValue( mSnappingEnabledDefault->isChecked() );

0 comments on commit 76c0d11

Please sign in to comment.