| 110 | } |
| 111 | |
| 112 | bool ActionValidator::hasAmbiguousShortcut(const QAction *action) const |
| 113 | { |
| 114 | QList<QKeySequence> shortcuts = action->shortcuts(); |
| 115 | return std::any_of(shortcuts.constBegin(), shortcuts.constEnd(), |
| 116 | [action, this](const QKeySequence &seq) { return isAmbigous(action, seq); }); |
| 117 | } |
| 118 | |
| 119 | QVector<QKeySequence> GammaRay::ActionValidator::findAmbiguousShortcuts(const QAction *action) const |
| 120 | { |
no test coverage detected