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 <mchehab+huawei@kernel.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
committed by
Masahiro Yamada
parent
cf497b9223
commit
5752ff07fd
@@ -316,6 +316,9 @@ ConfigList::ConfigList(ConfigView* p, const char *name)
|
|||||||
setVerticalScrollMode(ScrollPerPixel);
|
setVerticalScrollMode(ScrollPerPixel);
|
||||||
setHorizontalScrollMode(ScrollPerPixel);
|
setHorizontalScrollMode(ScrollPerPixel);
|
||||||
|
|
||||||
|
if (mode == symbolMode)
|
||||||
|
setHeaderLabels(QStringList() << "Item" << "Name" << "N" << "M" << "Y" << "Value");
|
||||||
|
else
|
||||||
setHeaderLabels(QStringList() << "Option" << "Name" << "N" << "M" << "Y" << "Value");
|
setHeaderLabels(QStringList() << "Option" << "Name" << "N" << "M" << "Y" << "Value");
|
||||||
|
|
||||||
connect(this, SIGNAL(itemSelectionChanged(void)),
|
connect(this, SIGNAL(itemSelectionChanged(void)),
|
||||||
@@ -397,6 +400,11 @@ void ConfigList::updateSelection(void)
|
|||||||
struct menu *menu;
|
struct menu *menu;
|
||||||
enum prop_type type;
|
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)
|
if (selectedItems().count() == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user