@@ -693,7 +693,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl )
693693 pbnMeasureColor->setContext ( QStringLiteral ( " gui" ) );
694694 pbnMeasureColor->setDefaultColor ( QColor ( 222 , 155 , 67 ) );
695695
696- capitaliseCheckBox ->setChecked ( mSettings ->value ( QStringLiteral ( " /qgis/capitaliseLayerName " ), QVariant ( false ) ).toBool () );
696+ capitalizeCheckBox ->setChecked ( mSettings ->value ( QStringLiteral ( " /qgis/capitalizeLayerName " ), QVariant ( false ) ).toBool () );
697697
698698 int projOpen = mSettings ->value ( QStringLiteral ( " /qgis/projOpenAtLaunch" ), 0 ).toInt ();
699699 mProjectOnLaunchCmbBx ->setCurrentIndex ( projOpen );
@@ -1185,8 +1185,8 @@ void QgsOptions::saveOptions()
11851185
11861186 mSettings ->setValue ( QStringLiteral ( " /qgis/map_update_interval" ), spinMapUpdateInterval->value () );
11871187 mSettings ->setValue ( QStringLiteral ( " /qgis/legendDoubleClickAction" ), cmbLegendDoubleClickAction->currentIndex () );
1188- bool legendLayersCapitalise = mSettings ->value ( QStringLiteral ( " /qgis/capitaliseLayerName " ), false ).toBool ();
1189- mSettings ->setValue ( QStringLiteral ( " /qgis/capitaliseLayerName " ), capitaliseCheckBox ->isChecked () );
1188+ bool legendLayersCapitalize = mSettings ->value ( QStringLiteral ( " /qgis/capitalizeLayerName " ), false ).toBool ();
1189+ mSettings ->setValue ( QStringLiteral ( " /qgis/capitalizeLayerName " ), capitalizeCheckBox ->isChecked () );
11901190
11911191 // Default simplify drawing configuration
11921192 QgsVectorSimplifyMethod::SimplifyHints simplifyHints = QgsVectorSimplifyMethod::NoSimplification;
@@ -1440,7 +1440,7 @@ void QgsOptions::saveOptions()
14401440 // refresh legend if any legend item's state is to be changed
14411441 if ( legendLayersBold != mLegendLayersBoldChkBx ->isChecked ()
14421442 || legendGroupsBold != mLegendGroupsBoldChkBx ->isChecked ()
1443- || legendLayersCapitalise != capitaliseCheckBox ->isChecked () )
1443+ || legendLayersCapitalize != capitalizeCheckBox ->isChecked () )
14441444 {
14451445 // TODO[MD] QgisApp::instance()->legend()->updateLegendItemStyles();
14461446 }
0 commit comments