MCPcopy Create free account
hub / github.com/Entware/Entware / setParentMenu

Method setParentMenu

scripts/config/qconf.cc:566–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566void ConfigList::setParentMenu(void)
567{
568 ConfigItem* item;
569 struct menu *oldroot;
570
571 oldroot = rootEntry;
572 if (rootEntry == &rootmenu)
573 return;
574 setRootMenu(menu_get_parent_menu(rootEntry->parent));
575
576 QTreeWidgetItemIterator it(this);
577 while (*it) {
578 item = (ConfigItem *)(*it);
579 if (item->menu == oldroot) {
580 setCurrentItem(item);
581 scrollToItem(item);
582 break;
583 }
584
585 ++it;
586 }
587}
588
589/*
590 * update all the children of a menu entry

Callers 1

goBackMethod · 0.80

Calls 1

menu_get_parent_menuFunction · 0.85

Tested by

no test coverage detected