diff options
| author | Méven Car <meven29@gmail.com> | 2020-03-05 10:02:46 +0100 |
|---|---|---|
| committer | Méven Car <meven.car@enioka.com> | 2020-03-08 19:02:19 +0100 |
| commit | ec207330d5bd61799a47092bf555a523ab000f93 (patch) | |
| tree | 1d81fd6d70ff14dcad535cc79c8d40c641a1c676 /src/core/kcoreconfigskeleton_p.h | |
| parent | a38f3d91d9dc6717010f01893ae26c8015b6bb05 (diff) | |
| download | kconfig-ec207330d5bd61799a47092bf555a523ab000f93.tar.gz kconfig-ec207330d5bd61799a47092bf555a523ab000f93.tar.bz2 | |
KconfigXT: Add a value attribute to Enum field choices
Summary:
Allow to write choices such as :
```
<choices>
<choice name="enum_name" value="I can't containt (anything)"></choice>
<choice name="normal_choice"></choice>
</choices>
```
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
Diffstat (limited to 'src/core/kcoreconfigskeleton_p.h')
| -rw-r--r-- | src/core/kcoreconfigskeleton_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/kcoreconfigskeleton_p.h b/src/core/kcoreconfigskeleton_p.h index 8ba64db7..fcc9bc13 100644 --- a/src/core/kcoreconfigskeleton_p.h +++ b/src/core/kcoreconfigskeleton_p.h @@ -62,6 +62,7 @@ public: QString mToolTip; ///< The ToolTip text for this item QString mWhatsThis; ///< The What's This text for this item KConfigGroup mConfigGroup; ///< KConfigGroup, allow to read/write item in nested groups + QHash<QString, QString> mValues; /// The values used for ItemEnum's choices, name -> value (if set) // HACK: Necessary to avoid introducing new virtuals in KConfigSkeletonItem std::function<bool()> mIsDefaultImpl; |
