Page MenuHomePhorge

Port to KConfigXT
ClosedPublic

Authored by nannanko on Aug 8 2026, 12:46 PM.

Details

Summary

Port to KConfigXT

Type: add

Test Plan

Compile and open kazv, verify that all config are correct.

Veridy unit tests pass.

Diff Detail

Repository
rK kazv
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tusooa requested changes to this revision.Aug 13 2026, 7:40 PM
tusooa added inline comments.
src/kazv-settings.kcfg
7

Is it possible to use QStandardPaths::AppConfigLocation instead of hard-coding a directory?

This revision now requires changes to proceed.Aug 13 2026, 7:40 PM
src/kazv-settings.kcfg
7

Is it possible to use QStandardPaths::AppConfigLocation instead of hard-coding a directory?

The constructor of KConfigXT is fixed to GeneralConfigLocation, it seems there is no official support.

src/kazv-settings.kcfg
7

https://api.kde.org/kconfigcompiler.html

The <kcfgfile> tag may contain either the "name" attribute, which should be the name of the configuration file described, or the "arg" attribute, which, if set to "true", will allow you to pass the KSharedConfig::Ptr object to use.

Port to AppConfigLocation.

This revision is now accepted and ready to land.Aug 19 2026, 11:57 AM
This revision was landed with ongoing or failed builds.Sat, Aug 22, 4:37 AM
This revision was automatically updated to reflect the committed changes.