22 #include <QListIterator> 24 #include <KLocalizedString> 40 m_menu_bar(bar), m_group_list()
58 const QString &position,
68 if (node)
delete node;
80 if (!menu)
return Q_NULLPTR;
85 if (!sub)
return Q_NULLPTR;
101 if (!item)
return Q_NULLPTR;
130 QAction *action_before = Q_NULLPTR;
131 QListIterator<Kwave::MenuNode *> it(
m_children);
133 while (it.hasPrevious()) {
135 if (c == child)
break;
136 if (c) action_before = c->
action();
152 QHash<QString, Kwave::MenuGroup *> &group_list =
groupList();
153 if (!group_list.contains(child->
name())) {
165 Q_ASSERT(command.length());
166 if (!command.length())
return false;
168 if (command ==
_(
"#separator")) {