Commit 211e0d84 authored by dt's avatar dt

ProjectExplorer: runProjectImpl -> runProject and make it public

parent 74d641a8
......@@ -1680,12 +1680,12 @@ void ProjectExplorerPlugin::cleanSession()
void ProjectExplorerPlugin::runProject()
{
runProjectImpl(startupProject(), ProjectExplorer::Constants::RUNMODE);
runProject(startupProject(), ProjectExplorer::Constants::RUNMODE);
}
void ProjectExplorerPlugin::runProjectContextMenu()
{
runProjectImpl(d->m_currentProject, ProjectExplorer::Constants::RUNMODE);
runProject(d->m_currentProject, ProjectExplorer::Constants::RUNMODE);
}
bool ProjectExplorerPlugin::hasBuildSettings(Project *pro)
......@@ -1726,7 +1726,7 @@ bool ProjectExplorerPlugin::hasDeploySettings(Project *pro)
return false;
}
void ProjectExplorerPlugin::runProjectImpl(Project *pro, QString mode)
void ProjectExplorerPlugin::runProject(Project *pro, QString mode)
{
if (!pro)
return;
......@@ -1764,7 +1764,7 @@ void ProjectExplorerPlugin::debugProject()
if (!pro)
return;
runProjectImpl(pro, ProjectExplorer::Constants::DEBUGMODE);
runProject(pro, ProjectExplorer::Constants::DEBUGMODE);
}
bool ProjectExplorerPlugin::showBuildConfigDialog()
......
......@@ -112,6 +112,8 @@ public:
static QStringList projectFilePatterns();
bool coreAboutToClose();
void runProject(Project *pro, QString mode);
signals:
void aboutToShowContextMenu(ProjectExplorer::Project *project,
ProjectExplorer::Node *node);
......@@ -224,7 +226,6 @@ private:
int queue(QList<Project *>, QStringList stepIds);
void updateContextMenuActions();
bool parseArguments(const QStringList &arguments, QString *error);
void runProjectImpl(Project *pro, QString mode);
void executeRunConfiguration(RunConfiguration *, const QString &mode);
bool hasBuildSettings(Project *pro);
bool hasDeploySettings(Project *pro);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment