| 263 | } |
| 264 | |
| 265 | void ActionContainer::insertMenu(QAction *before, ActionContainer *container) |
| 266 | { |
| 267 | QMenu *menu = container->menu(); |
| 268 | QTC_ASSERT(menu, return ); |
| 269 | menu->setParent(d->menu, menu->windowFlags()); |
| 270 | d->menu->insertMenu(before, menu); |
| 271 | } |
| 272 | |
| 273 | void ActionContainer::removeAction(Command *command) |
| 274 | { |