kconfig: highlight xconfig 'comment' lines with '***'
authorRandy Dunlap <rdunlap@infradead.org>
Sun, 18 Apr 2021 05:51:23 +0000 (22:51 -0700)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 19 Apr 2021 05:58:23 +0000 (14:58 +0900)
Mark Kconfig "comment" lines with "*** <commentstring> ***"
so that it is clear that these lines are comments and not some
kconfig item that cannot be modified.

This is helpful in some menus to be able to provide a menu
"sub-heading" for groups of similar config items.

This also makes the comments be presented in a way that is
similar to menuconfig and nconfig.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/qconf.cc

index d000869..78087b2 100644 (file)
@@ -122,6 +122,7 @@ void ConfigItem::updateMenu(void)
                goto set_prompt;
        case P_COMMENT:
                setIcon(promptColIdx, QIcon());
+               prompt = "*** " + prompt + " ***";
                goto set_prompt;
        default:
                ;