@@ -84,10 +84,10 @@ QgsSettings::~QgsSettings()
84
84
85
85
void QgsSettings::beginGroup ( const QString &prefix )
86
86
{
87
- mUserSettings ->beginGroup ( prefix. toLower ( ) );
87
+ mUserSettings ->beginGroup ( sanitizeKey ( prefix ) );
88
88
if ( mGlobalSettings )
89
89
{
90
- mGlobalSettings ->beginGroup ( prefix. toLower ( ) );
90
+ mGlobalSettings ->beginGroup ( sanitizeKey ( prefix ) );
91
91
}
92
92
}
93
93
@@ -152,7 +152,7 @@ QStringList QgsSettings::childGroups() const
152
152
153
153
QVariant QgsSettings::value ( const QString &key, const QVariant &defaultValue, const QgsSettings::Section section ) const
154
154
{
155
- QString pKey = prefixedKey ( key. toLower () , section );
155
+ QString pKey = prefixedKey ( key, section );
156
156
if ( !mUserSettings ->value ( pKey ).isNull () )
157
157
{
158
158
return mUserSettings ->value ( pKey );
@@ -166,7 +166,7 @@ QVariant QgsSettings::value( const QString &key, const QVariant &defaultValue, c
166
166
167
167
bool QgsSettings::contains ( const QString &key, const QgsSettings::Section section ) const
168
168
{
169
- QString pKey = prefixedKey ( key. toLower () , section );
169
+ QString pKey = prefixedKey ( key, section );
170
170
return mUserSettings ->contains ( pKey ) ||
171
171
( mGlobalSettings && mGlobalSettings ->contains ( pKey ) );
172
172
}
@@ -183,7 +183,7 @@ void QgsSettings::sync()
183
183
184
184
void QgsSettings::remove ( const QString &key )
185
185
{
186
- mUserSettings ->remove ( key. toLower ( ) );
186
+ mUserSettings ->remove ( sanitizeKey ( key ) );
187
187
}
188
188
189
189
QString QgsSettings::prefixedKey ( const QString &key, const Section section ) const
@@ -208,18 +208,18 @@ QString QgsSettings::prefixedKey( const QString &key, const Section section ) co
208
208
break ;
209
209
case Section::NoSection:
210
210
default :
211
- return sanitizeKey ( key. toLower () );
211
+ return sanitizeKey ( key );
212
212
}
213
- return prefix + " /" + sanitizeKey ( key. toLower () );
213
+ return prefix + " /" + sanitizeKey ( key );
214
214
}
215
215
216
216
217
217
int QgsSettings::beginReadArray ( const QString &prefix )
218
218
{
219
- int size = mUserSettings ->beginReadArray ( prefix. toLower ( ) );
219
+ int size = mUserSettings ->beginReadArray ( sanitizeKey ( prefix ) );
220
220
if ( 0 == size && mGlobalSettings )
221
221
{
222
- size = mGlobalSettings ->beginReadArray ( prefix. toLower ( ) );
222
+ size = mGlobalSettings ->beginReadArray ( sanitizeKey ( prefix ) );
223
223
mUsingGlobalArray = ( size > 0 );
224
224
}
225
225
return size;
@@ -250,7 +250,7 @@ void QgsSettings::setArrayIndex( int i )
250
250
void QgsSettings::setValue ( const QString &key, const QVariant &value, const QgsSettings::Section section )
251
251
{
252
252
// TODO: add valueChanged signal
253
- mUserSettings ->setValue ( prefixedKey ( key. toLower () , section ), value );
253
+ mUserSettings ->setValue ( prefixedKey ( key, section ), value );
254
254
}
255
255
256
256
// To lower case and clean the path
0 commit comments