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

Ingo Klöcker kloecker at kde.org
Wed Aug 30 13:02:33 BST 2023


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20230830/1a926ef6/attachment.sig>


More information about the kde-core-devel mailing list