From ec207330d5bd61799a47092bf555a523ab000f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9ven=20Car?= Date: Thu, 5 Mar 2020 10:02:46 +0100 Subject: KconfigXT: Add a value attribute to Enum field choices Summary: Allow to write choices such as : ``` ``` Test Plan: ctest Reviewers: ervin, bport, crossi, #frameworks Reviewed By: ervin Subscribers: ngraham, davidre, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D27463 --- src/kconfig_compiler/README.dox | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/kconfig_compiler/README.dox') diff --git a/src/kconfig_compiler/README.dox b/src/kconfig_compiler/README.dox index c17bd395..55e59736 100644 --- a/src/kconfig_compiler/README.dox +++ b/src/kconfig_compiler/README.dox @@ -354,7 +354,7 @@ this allows the same Enum value names to be used in different enums. For example - + \endverbatim @@ -369,6 +369,9 @@ will generate this public class containing the enum definition, inside the gener }; \endverbatim +Since 5.68, if present the value attribute will be used as the choice value written to the backend +instead of the name, allowing to write text incompatible with enum naming. + Alternatively, if GlobalEnums is set to true, all Enum items are defined as unnamed enums in the global scope of the generated class. In this case, all Enum values must have different names to avoid clashes. However, you can use a 'prefix' argument @@ -380,7 +383,7 @@ is set to true, the .kcfg entry - + \endverbatim -- cgit v1.2.1