KConfigGroup parent() and isValid()
Nicolás Alvarez
nicolas.alvarez at gmail.com
Sat Sep 20 04:07:30 BST 2014
2014-09-19 12:28 GMT-03:00 Thomas Lübking <thomas.luebking at gmail.com>:
> 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();
> }
That code doesn't make sense. Did you mean:
while (group.exists()) {
group = group.parent();
}
?
--
Nicolás
More information about the kde-core-devel
mailing list