History

kconfig: qconf: show selected choice in the Value column

It is useful to display the selected choice's value in the Value column.

Masahiro Yamada committed 1 year ago

Commit 604f5b21 parent cd5f1531 file · +8 −1Browse files

Unified · Split

scripts/kconfig/qconf.cc+8−1
@@ -127,6 +127,9 @@ void ConfigItem::updateMenu(void) · 126 unmodified lines
127127 goto set_prompt;
128128 case M_CHOICE:
129129 setIcon(promptColIdx, QIcon());
130+ sym = sym_calc_choice(menu);
131+ if (sym)
132+ setText(dataColIdx, sym->name);
130133 goto set_prompt;
131134 default:
132135 ;
@@ -189,7 +192,11 @@ void ConfigItem::testUpdateMenu(void) · 56 unmodified lines
189192 if (!menu)
190193 return;
191194
192− sym_calc_value(menu->sym);
195+ if (menu->type == M_CHOICE)
196+ sym_calc_choice(menu);
197+ else
198+ sym_calc_value(menu->sym);
199+
193200 if (menu->flags & MENU_CHANGED) {
194201 /* the menu entry changed, so update all list items */
195202 menu->flags &= ~MENU_CHANGED;