Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit f760c9ec2cea9d2bc5e9706b67ade8b47690588c
- Author: con <qtc-committer@nokia.com>
- Date: Fri Nov 12 13:45:54 2010 +0100
- Don't show GLSL or QML tools menus while they don't offer anything
- diff --git a/src/plugins/glsleditor/glsleditorplugin.cpp b/src/plugins/glsleditor/glsleditorplugin.cpp
- index 47a4312..2c8de08 100644
- --- a/src/plugins/glsleditor/glsleditorplugin.cpp
- +++ b/src/plugins/glsleditor/glsleditorplugin.cpp
- @@ -116,10 +116,10 @@ bool GLSLEditorPlugin::initialize(const QStringList & /*arguments*/, QString *er
- Core::ActionManager *am = core->actionManager();
- Core::ActionContainer *contextMenu = am->createMenu(GLSLEditor::Constants::M_CONTEXT);
- Core::ActionContainer *glslToolsMenu = am->createMenu(Core::Id(Constants::M_TOOLS_GLSL));
- + glslToolsMenu->setEmptyAction(Core::ActionContainer::EA_Hide);
- QMenu *menu = glslToolsMenu->menu();
- //: GLSL sub-menu in the Tools menu
- menu->setTitle(tr("GLSL"));
- - menu->setEnabled(true);
- am->actionContainer(Core::Constants::M_TOOLS)->addMenu(glslToolsMenu);
- Core::Command *cmd;
- diff --git a/src/plugins/qmljseditor/qmljseditorplugin.cpp b/src/plugins/qmljseditor/qmljseditorplugin.cpp
- index d6f18a0..7ae19b1 100644
- --- a/src/plugins/qmljseditor/qmljseditorplugin.cpp
- +++ b/src/plugins/qmljseditor/qmljseditorplugin.cpp
- @@ -150,10 +150,10 @@ bool QmlJSEditorPlugin::initialize(const QStringList & /*arguments*/, QString *e
- Core::ActionManager *am = core->actionManager();
- Core::ActionContainer *contextMenu = am->createMenu(QmlJSEditor::Constants::M_CONTEXT);
- Core::ActionContainer *qmlToolsMenu = am->createMenu(Core::Id(Constants::M_TOOLS_QML));
- + qmlToolsMenu->setEmptyAction(Core::ActionContainer::EA_Hide);
- QMenu *menu = qmlToolsMenu->menu();
- //: QML sub-menu in the Tools menu
- menu->setTitle(tr("QML"));
- - menu->setEnabled(true);
- am->actionContainer(Core::Constants::M_TOOLS)->addMenu(qmlToolsMenu);
- Core::Command *cmd;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement