KConfigGroup parent() and isValid()

Thomas Lübking thomas.luebking at gmail.com
Fri Sep 19 16:28:04 BST 2014


On Freitag, 19. September 2014 13:06:41 CEST, Aaron J. Seigo wrote:

> KConfigGroup group = <some valid group>;
> while (group.isValid()) {
> 	group = group.parent();
> }

I'm checking for existance rather than validity in kconfig (great tool, far superior to k(read|write)config, btw /advert ;-)

KConfigGroup group = <some EXISTING group>;
while (group.isValid()) {
   group = group.exists();
}

Cheers,
Thomas




More information about the kde-core-devel mailing list