aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfig_compiler/test4.cpp.ref
diff options
context:
space:
mode:
authorMéven Car <meven29@gmail.com>2020-03-05 10:02:46 +0100
committerMéven Car <meven.car@enioka.com>2020-03-08 19:02:19 +0100
commitec207330d5bd61799a47092bf555a523ab000f93 (patch)
tree1d81fd6d70ff14dcad535cc79c8d40c641a1c676 /autotests/kconfig_compiler/test4.cpp.ref
parenta38f3d91d9dc6717010f01893ae26c8015b6bb05 (diff)
downloadkconfig-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 'autotests/kconfig_compiler/test4.cpp.ref')
-rw-r--r--autotests/kconfig_compiler/test4.cpp.ref3
1 files changed, 3 insertions, 0 deletions
diff --git a/autotests/kconfig_compiler/test4.cpp.ref b/autotests/kconfig_compiler/test4.cpp.ref
index e99a1ae9..fb4db2ff 100644
--- a/autotests/kconfig_compiler/test4.cpp.ref
+++ b/autotests/kconfig_compiler/test4.cpp.ref
@@ -68,10 +68,13 @@ QColor defaultColor[4] = { Qt::red, Qt::blue, Qt::green, Qt::black };
}
KConfigSkeleton::ItemEnum *itemMouseAction[3];
itemMouseAction[0] = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "right_mouse_action" ), mMouseAction[0], valuesMouseAction, EnumMouseAction::Decrypt );
+ itemMouseAction[0]->setValueForChoice(QStringLiteral( "CrashNBurn" ), QStringLiteral( "Crash and Burn" ));
addItem( itemMouseAction[0], QStringLiteral( "MouseActionright" ) );
itemMouseAction[1] = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "mid_mouse_action" ), mMouseAction[1], valuesMouseAction, EnumMouseAction::Encrypt );
+ itemMouseAction[1]->setValueForChoice(QStringLiteral( "CrashNBurn" ), QStringLiteral( "Crash and Burn" ));
addItem( itemMouseAction[1], QStringLiteral( "MouseActionmid" ) );
itemMouseAction[2] = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "left_mouse_action" ), mMouseAction[2], valuesMouseAction, EnumMouseAction::PumpNDump );
+ itemMouseAction[2]->setValueForChoice(QStringLiteral( "CrashNBurn" ), QStringLiteral( "Crash and Burn" ));
addItem( itemMouseAction[2], QStringLiteral( "MouseActionleft" ) );
KConfigSkeleton::ItemColor *itemGrayColor[11];
itemGrayColor[0] = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "gray color #0" ), mGrayColor[0],