Skip to content
Snippets Groups Projects
Commit 81514c29 authored by Kai Koehne's avatar Kai Koehne Committed by hjk
Browse files

Fix QtQuick->Preview shortcut to start a qmlviewer

The executable has been renamed to 'qmlviewer' months ago
(cherry picked from commit e28e1f0c)
parent 5ae37f13
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ QmlJSPreviewRunner::QmlJSPreviewRunner(QObject *parent) : ...@@ -18,7 +18,7 @@ QmlJSPreviewRunner::QmlJSPreviewRunner(QObject *parent) :
const QString searchPath = QCoreApplication::applicationDirPath() const QString searchPath = QCoreApplication::applicationDirPath()
+ Utils::SynchronousProcess::pathSeparator() + Utils::SynchronousProcess::pathSeparator()
+ QString(qgetenv("PATH")); + QString(qgetenv("PATH"));
m_qmlViewerDefaultPath = Utils::SynchronousProcess::locateBinary(searchPath, QLatin1String("qml")); m_qmlViewerDefaultPath = Utils::SynchronousProcess::locateBinary(searchPath, QLatin1String("qmlviewer"));
ProjectExplorer::Environment environment = ProjectExplorer::Environment::systemEnvironment(); ProjectExplorer::Environment environment = ProjectExplorer::Environment::systemEnvironment();
m_applicationLauncher.setEnvironment(environment.toStringList()); m_applicationLauncher.setEnvironment(environment.toStringList());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment