From 5807f04c1e3ccce2267fbaaf8eade3ac57ff8ed8 Mon Sep 17 00:00:00 2001 From: Konstantin Tokarev Date: Thu, 26 Apr 2012 13:30:58 +0400 Subject: [PATCH] Hide subproject actions in non-qmake projects. Change-Id: I5780308d3dd096aa1f818117d21617901f087f11 Reviewed-by: Daniel Teske --- src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp b/src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp index 347f624d4e7..ace19cdca5b 100644 --- a/src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp +++ b/src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp @@ -228,6 +228,7 @@ bool Qt4ProjectManagerPlugin::initialize(const QStringList &arguments, QString * m_buildSubProjectAction = new Utils::ParameterAction(tr("Build Subproject"), tr("Build Subproject \"%1\""), Utils::ParameterAction::EnabledWithParameter, this); command = am->registerAction(m_buildSubProjectAction, Constants::BUILDSUBDIR, projectContext); + command->setAttribute(Core::Command::CA_Hide); command->setAttribute(Core::Command::CA_UpdateText); command->setDescription(m_buildSubProjectAction->text()); mbuild->addAction(command, ProjectExplorer::Constants::G_BUILD_PROJECT); @@ -236,6 +237,7 @@ bool Qt4ProjectManagerPlugin::initialize(const QStringList &arguments, QString * m_rebuildSubProjectAction = new Utils::ParameterAction(tr("Rebuild Subproject"), tr("Rebuild Subproject \"%1\""), Utils::ParameterAction::EnabledWithParameter, this); command = am->registerAction(m_rebuildSubProjectAction, Constants::REBUILDSUBDIR, projectContext); + command->setAttribute(Core::Command::CA_Hide); command->setAttribute(Core::Command::CA_UpdateText); command->setDescription(m_rebuildSubProjectAction->text()); mbuild->addAction(command, ProjectExplorer::Constants::G_BUILD_PROJECT); @@ -244,6 +246,7 @@ bool Qt4ProjectManagerPlugin::initialize(const QStringList &arguments, QString * m_cleanSubProjectAction = new Utils::ParameterAction(tr("Clean Subproject"), tr("Clean Subproject \"%1\""), Utils::ParameterAction::EnabledWithParameter, this); command = am->registerAction(m_cleanSubProjectAction, Constants::CLEANSUBDIR, projectContext); + command->setAttribute(Core::Command::CA_Hide); command->setAttribute(Core::Command::CA_UpdateText); command->setDescription(m_cleanSubProjectAction->text()); mbuild->addAction(command, ProjectExplorer::Constants::G_BUILD_PROJECT);