forked from qt-creator/qt-creator
overhaul process argument handling
get away from argument stringlists. instead, use native shell command lines which support quoting/splitting, environment variable expansion and redirections with well-understood semantics. Task-number: QTCREATORBUG-542 Task-number: QTCREATORBUG-1564
This commit is contained in:
@@ -791,13 +791,7 @@ bool QmlEngine::isShadowBuildProject() const
|
||||
|
||||
QString QmlEngine::qmlImportPath() const
|
||||
{
|
||||
const QString qmlImportPathPrefix("QML_IMPORT_PATH=");
|
||||
QStringList env = startParameters().environment;
|
||||
foreach (const QString &envStr, env) {
|
||||
if (envStr.startsWith(qmlImportPathPrefix))
|
||||
return envStr.mid(qmlImportPathPrefix.length());
|
||||
}
|
||||
return QString();
|
||||
return startParameters().environment.value("QML_IMPORT_PATH");
|
||||
}
|
||||
|
||||
QString QmlEngine::toShadowBuildFilename(const QString &filename) const
|
||||
|
||||
Reference in New Issue
Block a user