Commit 76d8a41d authored by Marco Bubke's avatar Marco Bubke

QmlDesigner: Quote paths

Change-Id: I8c06aaafc51e010cebfc9946c4943ccfb86aafd9
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent e6af796b
......@@ -387,15 +387,15 @@ static QString generatePuppetCompilingHelp(const QString &puppetName, const QStr
{
QString buildDirectory = QDir::toNativeSeparators(QDir::cleanPath(QDir::tempPath() + QStringLiteral("/") + puppetName));
QString qmakePath = QDir::toNativeSeparators(QDir::cleanPath(pathToQt + QStringLiteral("/bin/qmake -r ")));
QString projectPath = QDir::toNativeSeparators(QDir::cleanPath(sharedDirPath() + QStringLiteral("/qml/qmlpuppet/%1/%1.pro\n")));
QString qmakePath = QStringLiteral("\"") +QDir::toNativeSeparators(QDir::cleanPath(pathToQt + QStringLiteral("/bin/qmake\" -r ")));
QString projectPath = QStringLiteral("\"") + QDir::toNativeSeparators(QDir::cleanPath(sharedDirPath() + QStringLiteral("/qml/qmlpuppet/%1/%1.pro\"\n")));
QString puppetCompileHelp;
puppetCompileHelp.append(QStringLiteral("<p><code><pre>"));
puppetCompileHelp.append(QStringLiteral("<form><input></input></form>"));
puppetCompileHelp.append(QStringLiteral("mkdir ") + buildDirectory+ QStringLiteral("\n"));
puppetCompileHelp.append(QStringLiteral("cd ") + buildDirectory + QStringLiteral("\n"));
puppetCompileHelp.append(QStringLiteral("mkdir \"") + buildDirectory+ QStringLiteral("\"\n"));
puppetCompileHelp.append(QStringLiteral("cd \"") + buildDirectory + QStringLiteral("\"\n"));
puppetCompileHelp.append(qmakePath + projectPath);
puppetCompileHelp.append(QStringLiteral("make"));
puppetCompileHelp.append(QStringLiteral("</pre></code></p>"));
......
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