MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / scheduleProjectRun

Method scheduleProjectRun

tools/BuildProjectTool.cpp:185–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void BuildProjectTool::scheduleProjectRun(ProjectExplorer::Project *project,
186 const QString &projectName,
187 QString &result)
188{
189 auto *target = project->activeTarget();
190 if (!target) {
191 result += QString("\n\nError: No active target found for the project.");
192 return;
193 }
194
195 auto *runConfig = target->activeRunConfiguration();
196 if (!runConfig) {
197 result += QString("\n\nError: No active run configuration found for the project.");
198 return;
199 }
200
201 QString runConfigName = runConfig->displayName();
202 result += QString("\n\nProject '%1' will be started with run configuration '%2'.")
203 .arg(projectName, runConfigName);
204
205 ProjectExplorer::ProjectExplorerPlugin::runProject(project, Utils::Id(ProjectExplorer::Constants::NORMAL_RUN_MODE));
206}
207
208QString BuildProjectTool::collectBuildResults(
209 bool success, const QString &projectName, bool isRebuild)

Callers

nothing calls this directly

Calls 1

displayNameMethod · 0.45

Tested by

no test coverage detected