mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
allow scripted addMenu() to specify grouping
This commit is contained in:
parent
d5c8689843
commit
0f52b82c21
2 changed files with 3 additions and 3 deletions
|
@ -27,8 +27,8 @@ void MenuScriptingInterface::menuItemTriggered() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MenuScriptingInterface::addMenu(const QString& menu) {
|
void MenuScriptingInterface::addMenu(const QString& menu, const QString& grouping) {
|
||||||
QMetaObject::invokeMethod(Menu::getInstance(), "addMenu", Q_ARG(const QString&, menu));
|
QMetaObject::invokeMethod(Menu::getInstance(), "addMenu", Q_ARG(const QString&, menu), Q_ARG(const QString&, grouping));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MenuScriptingInterface::removeMenu(const QString& menu) {
|
void MenuScriptingInterface::removeMenu(const QString& menu) {
|
||||||
|
|
|
@ -28,7 +28,7 @@ private slots:
|
||||||
void menuItemTriggered();
|
void menuItemTriggered();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void addMenu(const QString& menuName);
|
void addMenu(const QString& menuName, const QString& grouping = QString());
|
||||||
void removeMenu(const QString& menuName);
|
void removeMenu(const QString& menuName);
|
||||||
bool menuExists(const QString& menuName);
|
bool menuExists(const QString& menuName);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue