forked from qt-creator/qt-creator
QmlDesigner.qmlPuppet: allows specifying alternative to qmlpuppet
This allows the user to specify another qmlpuppet then the one delivered with QtCreator. For example a pupper build with mingw. The enviroment variable QTCREATOR_QMLPUPPET_PATH is used. Reviewed-by: Kai Koehne
This commit is contained in:
@@ -95,6 +95,11 @@ NodeInstanceServerProxy::NodeInstanceServerProxy(NodeInstanceView *nodeInstanceV
|
||||
#endif
|
||||
applicationPath += "/qmlpuppet";
|
||||
|
||||
QByteArray envImportPath = qgetenv("QTCREATOR_QMLPUPPET_PATH");
|
||||
if (!envImportPath.isEmpty()) {
|
||||
applicationPath = envImportPath;
|
||||
}
|
||||
|
||||
m_qmlPuppetEditorProcess = new QProcess;
|
||||
connect(m_qmlPuppetEditorProcess.data(), SIGNAL(finished(int,QProcess::ExitStatus)), this, SLOT(processFinished(int,QProcess::ExitStatus)));
|
||||
connect(QCoreApplication::instance(), SIGNAL(aboutToQuit()), m_qmlPuppetEditorProcess.data(), SLOT(kill()));
|
||||
|
||||
Reference in New Issue
Block a user