| 172 | } |
| 173 | |
| 174 | void ActionContainer::addMenu(ActionContainer *menu, const QString &groupId) |
| 175 | { |
| 176 | auto actualGroupId = !groupId.isEmpty() ? groupId : G_DEFAULT_TWO; |
| 177 | auto groupIt = d->findGroup(actualGroupId); |
| 178 | QTC_ASSERT(groupIt != d->groupList.constEnd(), return ); |
| 179 | |
| 180 | d->groupList[groupIt - d->groupList.constBegin()].items.append(menu); |
| 181 | connect(menu, &QObject::destroyed, d, &ActionContainerPrivate::itemDestroyed); |
| 182 | |
| 183 | QAction *beforeAction = d->insertLocation(groupIt); |
| 184 | insertMenu(beforeAction, menu); |
| 185 | |
| 186 | d->scheduleUpdate(); |
| 187 | } |
| 188 | |
| 189 | void ActionContainer::addMenu(ActionContainer *before, ActionContainer *menu) |
| 190 | { |
nothing calls this directly
no test coverage detected