Showing the changes to interface/src/scripting/MenuScriptingInterface.cpp (1 of 59 files). Show all
Unified · Split
| @@ -86,10 +86,13 @@ bool MenuScriptingInterface::menuItemExists(const QString& menu, const QString& · 85 unmodified lines | |||
| 86 | 86 | ||
| 87 | void MenuScriptingInterface::addActionGroup(const QString& groupName, const QStringList& actionList, | 87 | void MenuScriptingInterface::addActionGroup(const QString& groupName, const QStringList& actionList, |
| 88 | const QString& selected) { | 88 | const QString& selected) { |
| 89 | static const char* slot = SLOT(menuItemTriggered()); | ||
| 89 | QMetaObject::invokeMethod(Menu::getInstance(), "addActionGroup", | 90 | QMetaObject::invokeMethod(Menu::getInstance(), "addActionGroup", |
| 90 | Q_ARG(const QString&, groupName), | 91 | Q_ARG(const QString&, groupName), |
| 91 | Q_ARG(const QStringList&, actionList), | 92 | Q_ARG(const QStringList&, actionList), |
| 92 | Q_ARG(const QString&, selected)); | 93 | Q_ARG(const QString&, selected), |
| 94 | Q_ARG(QObject*, this), | ||
| 95 | Q_ARG(const char*, slot)); | ||
| 93 | } | 96 | } |
| 94 | 97 | ||
| 95 | void MenuScriptingInterface::removeActionGroup(const QString& groupName) { | 98 | void MenuScriptingInterface::removeActionGroup(const QString& groupName) { |