16 Commits

Author SHA1 Message Date
Ismail Sunni
0c7c494831
Add section in beginGroup and remove Setting. 2017-09-28 17:01:00 +07:00
Nyall Dawson
31c1ae1c6a Add missing QStringLiterals 2017-09-25 17:12:03 +10:00
Nyall Dawson
2a33844416 Pass by const ref where possible 2017-09-11 21:19:22 +10:00
Nyall Dawson
851c081105 Remove use of deprecated header 2017-09-11 17:10:31 +10:00
Jorge Gustavo Rocha
ce01bc0b36 Include settings.globalChildGroups in test
Fix container iteration
2017-09-01 09:20:49 +01:00
Jorge Gustavo Rocha
8486767fa3 Support removal of global defined XYZ connections 2017-08-22 23:11:58 +01:00
Juergen E. Fischer
4f9a9e0360 s/( )/()/; s/== /== /; s/!= /!= /; 2017-07-19 09:19:37 +02:00
Alessandro Pasotti
9c2f88c911 QgsSettings: add writeArray and more group and array tests 2017-04-12 18:02:17 +02:00
Alessandro Pasotti
5adbc641d4 QgsSettings: added Auth, App and Providers sections
That should be all we need for namespaced settings.
2017-03-20 16:09:34 +01:00
Alessandro Pasotti
99f859e2ac QgsSettings: removed lower(), now it's case sensistive 2017-03-06 10:51:54 +01:00
Alessandro Pasotti
f0d2f6dcf3 QgsSettings: pass all keys through the sanitizer (and lower()) 2017-03-04 18:17:32 +01:00
Mathieu Pellerin
f11eb3dca8 enforce lower-case qgssettings keys (#4218)
* enforce lower-case qgssettings keys

* add QgsSettings::remove() unit test
2017-03-04 15:50:20 +10:00
Juergen E. Fischer
a10c890383 More QgsSettings updates:
* revives WMS
* QgsSettings::clear() added
* section added to QgsSettings::contains()
* type parameter added to sip binding of QgsSettings.value()
* TODO: customization & evis
2017-03-04 02:37:59 +01:00
Denis Rouzaud
40c056cae0 run astyle on src/core 2017-03-03 09:09:37 +01:00
Alessandro Pasotti
e045b369cf Fixes segfault in QgsSettings::clear, fixes #16233
mGlobalSettings is read-only and can be a nullptr
that QSettings instance should never be modified
nor assumed to be instanciated
2017-03-02 08:13:24 +01:00
Alessandro Pasotti
e1ede700a8 [feature] QgsSettings QGIS QSettings replacement (#4160)
* [feature] QgsSettings QGIS QSettings replacement

This is the new QgsSettings class that adds an (optional)
Global Settings additional ini file where a system administrator
can store default values for the settings and provide
pre-configuration.

If an ini file named qgis_global_settings.ini is found
in the pkgDataPath directory it is automatically loaded,
this path can be overriden by a command line argument
( --globalsettingsfile path ) and through an environment
variable (QGIS_GLOBAL_SETTINGS_FILE).
2017-02-22 20:22:10 +10:00