forked from qt-creator/qt-creator
Utils: Rename ParameterAction into Action
It became the defacto-type for action when ActionBuilder started creating them as default. Change-Id: I1008d60b78ea83919ce1c80a7ef828527fe9902c Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -72,7 +72,7 @@ private:
|
||||
QAction *m_rescanProjectAction;
|
||||
QAction *m_buildFileContextMenu;
|
||||
QAction *m_reloadCMakePresetsAction;
|
||||
Utils::ParameterAction *m_buildFileAction;
|
||||
Utils::Action *m_buildFileAction;
|
||||
QAction *m_cmakeProfilerAction;
|
||||
QAction *m_cmakeDebuggerAction;
|
||||
QAction *m_cmakeDebuggerSeparator;
|
||||
|
||||
@@ -49,10 +49,10 @@ public:
|
||||
// This can't be stand-alone yet as it registers in the plugin object pool
|
||||
CMakeToolManager cmakeToolManager;
|
||||
|
||||
ParameterAction buildTargetContextAction{
|
||||
Action buildTargetContextAction{
|
||||
Tr::tr("Build"),
|
||||
Tr::tr("Build \"%1\""),
|
||||
ParameterAction::AlwaysEnabled/*handled manually*/
|
||||
Action::AlwaysEnabled/*handled manually*/
|
||||
};
|
||||
|
||||
CMakeSettingsPage settingsPage;
|
||||
@@ -114,7 +114,7 @@ class CMakeProjectPlugin final : public ExtensionSystem::IPlugin
|
||||
connect(ProjectTree::instance(), &ProjectTree::currentNodeChanged,
|
||||
this, &CMakeProjectPlugin::updateContextActions);
|
||||
|
||||
connect(&d->buildTargetContextAction, &ParameterAction::triggered, this, [] {
|
||||
connect(&d->buildTargetContextAction, &Action::triggered, this, [] {
|
||||
if (auto bs = qobject_cast<CMakeBuildSystem *>(ProjectTree::currentBuildSystem())) {
|
||||
auto targetNode = dynamic_cast<const CMakeTargetNode *>(ProjectTree::currentNode());
|
||||
bs->buildCMakeTarget(targetNode ? targetNode->displayName() : QString());
|
||||
|
||||
Reference in New Issue
Block a user