Re: Merging a 2nd style (non xml) for KConfigXT?

Ingo Klöcker <[email protected]>
Newsgroups gmane.comp.kde.devel.core
Message-ID <13341714.uLZWGnKmhe@daneel>
On Mittwoch, 30. August 2023 11:43:27 CEST Tomaz Canabrava wrote:
> Things that KConfigXT XML lacks:
> 
> * Access to the default value of a setting (KConfigXT allows me to
> define one, but I can't use it on a if in the codebase, there's no way
> to query it back)

There's no nice entryNameDefault() API, but you can get the default value. At 
least, a static one:
```
Settings{}.findItem(QStringLiteral("RetrieveSignerKeysAfterImport"))-
>getDefault().toBool()
```

> * Compartimentalized acessors: bgColor() exists inside of the Gui class,
> not on SomePreferences, so it's easier to organize.

Yeah, it's really a pity that the groups one puts the entries in in the XML 
are not exposed in the API.

Regards,
Ingo
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQTbjgIOMowwlCBgvyGxb1mVFkdKugUCZO8v2QAKCRCxb1mVFkdK
uieGAQCI3JUaGPLsify4NJIjU/YLLPrZsH159K0MbVkbZSko+gEA9v+QZSiYoI9V
GKuQxahwr8/9p8q/RBNcURv4aFL7LQM=
=Pu/U
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.