Showing the changes to interface/src/scripting/MenuScriptingInterface.cpp (1 of 9 files). Show all
Unified · Split
| @@ -84,6 +84,19 @@ bool MenuScriptingInterface::menuItemExists(const QString& menu, const QString& · 83 unmodified lines | |||
| 84 | return result; | 84 | return result; |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | void MenuScriptingInterface::addActionGroup(const QString& groupName, const QStringList& actionList, | ||
| 88 | const QString& selected) { | ||
| 89 | QMetaObject::invokeMethod(Menu::getInstance(), "addActionGroup", | ||
| 90 | Q_ARG(const QString&, groupName), | ||
| 91 | Q_ARG(const QStringList&, actionList), | ||
| 92 | Q_ARG(const QString&, selected)); | ||
| 93 | } | ||
| 94 | |||
| 95 | void MenuScriptingInterface::removeActionGroup(const QString& groupName) { | ||
| 96 | QMetaObject::invokeMethod(Menu::getInstance(), "removeActionGroup", | ||
| 97 | Q_ARG(const QString&, groupName)); | ||
| 98 | } | ||
| 99 | |||
| 87 | bool MenuScriptingInterface::isOptionChecked(const QString& menuOption) { | 100 | bool MenuScriptingInterface::isOptionChecked(const QString& menuOption) { |
| 88 | bool result; | 101 | bool result; |
| 89 | QMetaObject::invokeMethod(Menu::getInstance(), "isOptionChecked", Qt::BlockingQueuedConnection, | 102 | QMetaObject::invokeMethod(Menu::getInstance(), "isOptionChecked", Qt::BlockingQueuedConnection, |