MCPcopy Create free account
hub / github.com/c3d/tao3D / runProcess

Method runProcess

tao/widget.cpp:14426–14443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14424// ============================================================================
14425
14426Name_p Widget::runProcess(Tree_p self, text name, text args)
14427// ----------------------------------------------------------------------------
14428// Launch the given process
14429// ----------------------------------------------------------------------------
14430{
14431 QString qName = +name;
14432 if (!processMap.contains(qName))
14433 {
14434 QString qArgs = +args;
14435 QStringList qArgList = args == "" ? QStringList() : qArgs.split(' ');
14436 return runProcess(self, name, qArgList);
14437 }
14438
14439 Process *process = processMap[qName];
14440 if (process->state() == QProcess::Running)
14441 return XL::xl_true;
14442 return XL::xl_false;
14443}
14444
14445
14446Name_p Widget::runProcess(Tree_p self, text name, QStringList &args)

Callers

nothing calls this directly

Calls 2

containsMethod · 0.45

Tested by

no test coverage detected