Showing the changes to interface/src/scripting/MenuScriptingInterface.cpp (1 of 5 files). Show all
Unified · Split
| @@ -94,22 +94,6 @@ bool MenuScriptingInterface::menuItemExists(const QString& menu, const QString& · 93 unmodified lines | ||
| 94 | 94 | return result; |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | −void MenuScriptingInterface::addActionGroup(const QString& groupName, const QStringList& actionList, | |
| 98 | − const QString& selected) { | |
| 99 | − static const char* slot = SLOT(menuItemTriggered()); | |
| 100 | − QMetaObject::invokeMethod(Menu::getInstance(), "addActionGroup", | |
| 101 | − Q_ARG(const QString&, groupName), | |
| 102 | − Q_ARG(const QStringList&, actionList), | |
| 103 | − Q_ARG(const QString&, selected), | |
| 104 | − Q_ARG(QObject*, this), | |
| 105 | − Q_ARG(const char*, slot)); | |
| 106 | −} | |
| 107 | − | |
| 108 | −void MenuScriptingInterface::removeActionGroup(const QString& groupName) { | |
| 109 | − QMetaObject::invokeMethod(Menu::getInstance(), "removeActionGroup", | |
| 110 | − Q_ARG(const QString&, groupName)); | |
| 111 | −} | |
| 112 | − | |
| 113 | 97 | bool MenuScriptingInterface::isOptionChecked(const QString& menuOption) { |
| 114 | 98 | if (QThread::currentThread() == qApp->thread()) { |
| 115 | 99 | return Menu::getInstance()->isOptionChecked(menuOption); |