ActionList Dispatcher::getActions(const QString &name, const QString &nameSpace) const { Q_D(const Dispatcher); ActionList ret; if (name.isEmpty()) { return ret; } const QString ns = DispatcherPrivate::cleanNamespace(nameSpace); const ActionList containers = d->getContainers(ns); for (Action *action : containers) { if (action->name() == name) { ret.prepend(action); } } return ret; }