kconfig: qconf: Change title for the item window
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 2 Apr 2020 09:27:59 +0000 (11:27 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 8 Apr 2020 15:13:45 +0000 (00:13 +0900)
Both main config window and the item window have "Option"
name. That sounds weird, and makes harder to debug issues
of a window appearing at the wrong place.

So, change the title to reflect the contents of each
window.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/qconf.cc

index 3ea255a66c55c70482034df3f3a764bbf6d0a1db..0e66dc73e177ff4c2d23b707e68fb4a3c7f24a83 100644 (file)
@@ -316,7 +316,10 @@ ConfigList::ConfigList(ConfigView* p, const char *name)
        setVerticalScrollMode(ScrollPerPixel);
        setHorizontalScrollMode(ScrollPerPixel);
 
-       setHeaderLabels(QStringList() << "Option" << "Name" << "N" << "M" << "Y" << "Value");
+       if (mode == symbolMode)
+               setHeaderLabels(QStringList() << "Item" << "Name" << "N" << "M" << "Y" << "Value");
+       else
+               setHeaderLabels(QStringList() << "Option" << "Name" << "N" << "M" << "Y" << "Value");
 
        connect(this, SIGNAL(itemSelectionChanged(void)),
                SLOT(updateSelection(void)));
@@ -397,6 +400,11 @@ void ConfigList::updateSelection(void)
        struct menu *menu;
        enum prop_type type;
 
+       if (mode == symbolMode)
+               setHeaderLabels(QStringList() << "Item" << "Name" << "N" << "M" << "Y" << "Value");
+       else
+               setHeaderLabels(QStringList() << "Option" << "Name" << "N" << "M" << "Y" << "Value");
+
        if (selectedItems().count() == 0)
                return;