Login  Register

Re: rs_settings

Posted by ravas on Aug 25, 2015; 8:33pm
URL: https://forum.librecad.org/rs-settings-tp5712040p5712060.html

I think we can also simplify for cases like:
	RS_SETTINGS->beginGroup("/group");
	RS_SETTINGS->writeEntry("/key", value);
	RS_SETTINGS->endGroup();
One idea is to add a parameter for the group, thereby reducing that example to a single line.
The parameter could use the current group class member as a default,
so that the above syntax would still work for cases when we need to access more than one.