| 564 | } |
| 565 | |
| 566 | void 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 |
no test coverage detected