aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/qconf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/qconf.cc')
-rw-r--r--scripts/kconfig/qconf.cc18
1 files changed, 14 insertions, 4 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index c0ae0a7ddb42..512c2f5c341d 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -89,6 +89,7 @@ void ConfigItem::okRename(int col)
89{ 89{
90 Parent::okRename(col); 90 Parent::okRename(col);
91 sym_set_string_value(menu->sym, text(dataColIdx).latin1()); 91 sym_set_string_value(menu->sym, text(dataColIdx).latin1());
92 listView()->updateList(this);
92} 93}
93#endif 94#endif
94 95
@@ -605,6 +606,8 @@ void ConfigList::updateMenuList(P* parent, struct menu* menu)
605 606
606 visible = menu_is_visible(child); 607 visible = menu_is_visible(child);
607 if (showAll || visible) { 608 if (showAll || visible) {
609 if (!child->sym && !child->list && !child->prompt)
610 continue;
608 if (!item || item->menu != child) 611 if (!item || item->menu != child)
609 item = new ConfigItem(parent, last, child, visible); 612 item = new ConfigItem(parent, last, child, visible);
610 else 613 else
@@ -1247,6 +1250,7 @@ void ConfigSearchWindow::search(void)
1247 1250
1248 free(result); 1251 free(result);
1249 list->list->clear(); 1252 list->list->clear();
1253 info->clear();
1250 1254
1251 result = sym_re_search(editField->text().latin1()); 1255 result = sym_re_search(editField->text().latin1());
1252 if (!result) 1256 if (!result)
@@ -1316,7 +1320,7 @@ ConfigMainWindow::ConfigMainWindow(void)
1316 conf_changed(); 1320 conf_changed();
1317 QAction *saveAsAction = new QAction("Save As...", "Save &As...", 0, this); 1321 QAction *saveAsAction = new QAction("Save As...", "Save &As...", 0, this);
1318 connect(saveAsAction, SIGNAL(activated()), SLOT(saveConfigAs())); 1322 connect(saveAsAction, SIGNAL(activated()), SLOT(saveConfigAs()));
1319 QAction *searchAction = new QAction("Search", "&Search", CTRL+Key_F, this); 1323 QAction *searchAction = new QAction("Find", "&Find", CTRL+Key_F, this);
1320 connect(searchAction, SIGNAL(activated()), SLOT(searchConfig())); 1324 connect(searchAction, SIGNAL(activated()), SLOT(searchConfig()));
1321 QAction *singleViewAction = new QAction("Single View", QPixmap(xpm_single_view), "Split View", 0, this); 1325 QAction *singleViewAction = new QAction("Single View", QPixmap(xpm_single_view), "Split View", 0, this);
1322 connect(singleViewAction, SIGNAL(activated()), SLOT(showSingleView())); 1326 connect(singleViewAction, SIGNAL(activated()), SLOT(showSingleView()));
@@ -1373,10 +1377,13 @@ ConfigMainWindow::ConfigMainWindow(void)
1373 saveAction->addTo(config); 1377 saveAction->addTo(config);
1374 saveAsAction->addTo(config); 1378 saveAsAction->addTo(config);
1375 config->insertSeparator(); 1379 config->insertSeparator();
1376 searchAction->addTo(config);
1377 config->insertSeparator();
1378 quitAction->addTo(config); 1380 quitAction->addTo(config);
1379 1381
1382 // create edit menu
1383 QPopupMenu* editMenu = new QPopupMenu(this);
1384 menu->insertItem("&Edit", editMenu);
1385 searchAction->addTo(editMenu);
1386
1380 // create options menu 1387 // create options menu
1381 QPopupMenu* optionMenu = new QPopupMenu(this); 1388 QPopupMenu* optionMenu = new QPopupMenu(this);
1382 menu->insertItem("&Option", optionMenu); 1389 menu->insertItem("&Option", optionMenu);
@@ -1467,7 +1474,10 @@ void ConfigMainWindow::searchConfig(void)
1467void ConfigMainWindow::changeMenu(struct menu *menu) 1474void ConfigMainWindow::changeMenu(struct menu *menu)
1468{ 1475{
1469 configList->setRootMenu(menu); 1476 configList->setRootMenu(menu);
1470 backAction->setEnabled(TRUE); 1477 if (configList->rootEntry->parent == &rootmenu)
1478 backAction->setEnabled(FALSE);
1479 else
1480 backAction->setEnabled(TRUE);
1471} 1481}
1472 1482
1473void ConfigMainWindow::setMenuLink(struct menu *menu) 1483void ConfigMainWindow::setMenuLink(struct menu *menu)