Revert "kconfig: qconf: Change title for the item window"

This reverts commit 5752ff07fd90d764d96e3c586cc95c09598abfdd.

It added dead code to ConfigList:ConfigList().

The constructor of ConfigList has the initializer, mode(singleMode).

if (mode == symbolMode)
setHeaderLabels(QStringList() << "Item" << "Name" << "N" << "M" << "Y" << "Value");
else
setHeaderLabels(QStringList() << "Option" << "Name" << "N" << "M" << "Y" << "Value");

... always takes the else part.

The change to ConfigList::updateSelection() is strange too.
When you click the split view icon for the first time, the titles in
both windows show "Option". After you click something in the right
window, the title suddenly changes to "Item".

ConfigList::updateSelection() is not the right place to do this,
at least. It was not a good idea, I think.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+1 -9
+1 -9
scripts/kconfig/qconf.cc
··· 307 307 setVerticalScrollMode(ScrollPerPixel); 308 308 setHorizontalScrollMode(ScrollPerPixel); 309 309 310 - if (mode == symbolMode) 311 - setHeaderLabels(QStringList() << "Item" << "Name" << "N" << "M" << "Y" << "Value"); 312 - else 313 - setHeaderLabels(QStringList() << "Option" << "Name" << "N" << "M" << "Y" << "Value"); 310 + setHeaderLabels(QStringList() << "Option" << "Name" << "N" << "M" << "Y" << "Value"); 314 311 315 312 connect(this, SIGNAL(itemSelectionChanged(void)), 316 313 SLOT(updateSelection(void))); ··· 387 390 { 388 391 struct menu *menu; 389 392 enum prop_type type; 390 - 391 - if (mode == symbolMode) 392 - setHeaderLabels(QStringList() << "Item" << "Name" << "N" << "M" << "Y" << "Value"); 393 - else 394 - setHeaderLabels(QStringList() << "Option" << "Name" << "N" << "M" << "Y" << "Value"); 395 393 396 394 if (selectedItems().count() == 0) 397 395 return;