针对fluent集成案例修复bug
parent
b4c4e7e064
commit
d518eed8db
File diff suppressed because it is too large
Load Diff
|
@ -105,7 +105,8 @@ namespace SolverControl {
|
||||||
_processBar = new ModuleBase::ProcessBar(_mainWindow, _description, false);
|
_processBar = new ModuleBase::ProcessBar(_mainWindow, _description, false);
|
||||||
|
|
||||||
QString args = _solver->getParameter();
|
QString args = _solver->getParameter();
|
||||||
QRegExp regExp("%.*%");
|
args.replace("%modelpath%", startPath, Qt::CaseInsensitive);
|
||||||
|
/*QRegExp regExp("%.*%");
|
||||||
regExp.setMinimal(true);
|
regExp.setMinimal(true);
|
||||||
// int pos = regExp.indexIn(args);
|
// int pos = regExp.indexIn(args);
|
||||||
QStringList variables = regExp.capturedTexts();
|
QStringList variables = regExp.capturedTexts();
|
||||||
|
@ -114,8 +115,7 @@ namespace SolverControl {
|
||||||
QString va = variable.remove("%");
|
QString va = variable.remove("%");
|
||||||
if(va.toLower() == "modelpath")
|
if(va.toLower() == "modelpath")
|
||||||
args.replace(variables.at(i), startPath);
|
args.replace(variables.at(i), startPath);
|
||||||
// qDebug() << args;
|
}*/
|
||||||
}
|
|
||||||
|
|
||||||
// QString startProcess = solverPath + " " + args;
|
// QString startProcess = solverPath + " " + args;
|
||||||
// if (solverPath.contains(" "))
|
// if (solverPath.contains(" "))
|
||||||
|
|
Loading…
Reference in New Issue