| 73 | } |
| 74 | |
| 75 | void ContextMenuExtension::addAction( const QString& group, QAction* action ) |
| 76 | { |
| 77 | Q_D(ContextMenuExtension); |
| 78 | |
| 79 | auto actionGroupIt = d->extensions.find(group); |
| 80 | if (actionGroupIt == d->extensions.end()) { |
| 81 | d->extensions.insert( group, QList<QAction*>() << action ); |
| 82 | } else |
| 83 | { |
| 84 | actionGroupIt->append(action); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | static |
| 89 | void populateMenuWithGroup( |
no test coverage detected