Skip to content

Commit 5752ff0

Browse files
mchehabmasahir0y
authored andcommitted
kconfig: qconf: Change title for the item window
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 <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent cf497b9 commit 5752ff0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/kconfig/qconf.cc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,10 @@ ConfigList::ConfigList(ConfigView* p, const char *name)
316316
setVerticalScrollMode(ScrollPerPixel);
317317
setHorizontalScrollMode(ScrollPerPixel);
318318

319-
setHeaderLabels(QStringList() << "Option" << "Name" << "N" << "M" << "Y" << "Value");
319+
if (mode == symbolMode)
320+
setHeaderLabels(QStringList() << "Item" << "Name" << "N" << "M" << "Y" << "Value");
321+
else
322+
setHeaderLabels(QStringList() << "Option" << "Name" << "N" << "M" << "Y" << "Value");
320323

321324
connect(this, SIGNAL(itemSelectionChanged(void)),
322325
SLOT(updateSelection(void)));
@@ -397,6 +400,11 @@ void ConfigList::updateSelection(void)
397400
struct menu *menu;
398401
enum prop_type type;
399402

403+
if (mode == symbolMode)
404+
setHeaderLabels(QStringList() << "Item" << "Name" << "N" << "M" << "Y" << "Value");
405+
else
406+
setHeaderLabels(QStringList() << "Option" << "Name" << "N" << "M" << "Y" << "Value");
407+
400408
if (selectedItems().count() == 0)
401409
return;
402410

0 commit comments

Comments
 (0)