| 79 | } |
| 80 | |
| 81 | QAction *ActionContainerPrivate::insertLocation(QList<Group>::const_iterator group) const |
| 82 | { |
| 83 | if (group == groupList.constEnd()) |
| 84 | return nullptr; |
| 85 | |
| 86 | ++group; |
| 87 | while (group != groupList.constEnd()) { |
| 88 | if (!group->items.isEmpty()) { |
| 89 | QObject *item = group->items.first(); |
| 90 | QAction *action = q->actionForItem(item); |
| 91 | if (action) |
| 92 | return action; |
| 93 | } |
| 94 | ++group; |
| 95 | } |
| 96 | |
| 97 | return nullptr; |
| 98 | } |
| 99 | |
| 100 | ActionContainer::ActionContainer(const QString &id, ActionManagerPrivate *actMngPrivate) |
| 101 | : d(new ActionContainerPrivate(this, id, actMngPrivate)) |
no test coverage detected