KDE's Licensing policy (https://community.kde.org/Policies/Licensing_Policy) currently does not specify what license to use for generated code, like that generated from kapptemplate templates or other code generators like kconfigcompiler. So not the template itself or the generation code, but the output generated by them/with them.
I guess that should be some license which does not require any mentioning of the origin/author, and gives the person copying the code all rights, as if they wrote this from scratch themselves. So something like Public Domain, or whatever is a working license with the same effect.
Some kapptenplates have license statements for the generated code, but that usually is more a recommendation and more, the respective user only is noted as copyright holder already next to it, so effectively the output had been kind of passed through a "public domain" state and from there turned into ownership of the user. IANAL, so this seems in need of care.