diff options
author | hjk <hjk@theqtcompany.com> | 2016-01-27 16:56:36 +0100 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2016-01-28 11:35:51 +0000 |
commit | d5ecd4cf8b4c8bf98afeac5fe2f723de5027a1b2 (patch) | |
tree | ea262639092236f3b32da733744f9df35fb52e13 /src/plugins/qmlprofiler/localqmlprofilerrunner.cpp | |
parent | 9ffae7f4ba3d789e9c188133d877df66a8b57a9f (diff) |
ProjectExplorer: Use StandardRunnable in ApplicationLauncher
Change-Id: I7092d748207762d3dbd6c69c01cc06c88cbf63d8
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/localqmlprofilerrunner.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/localqmlprofilerrunner.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp index 2bc4b5e360..7492ce0ff1 100644 --- a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp +++ b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp @@ -87,6 +87,7 @@ LocalQmlProfilerRunner::~LocalQmlProfilerRunner() void LocalQmlProfilerRunner::start() { + StandardRunnable runnable = m_configuration.debuggee; QString arguments = m_configuration.socket.isEmpty() ? QmlDebug::qmlDebugTcpArguments(QmlDebug::QmlProfilerServices, m_configuration.port) : @@ -97,18 +98,18 @@ void LocalQmlProfilerRunner::start() if (!m_configuration.debuggee.commandLineArguments.isEmpty()) arguments += QLatin1Char(' ') + m_configuration.debuggee.commandLineArguments; + runnable.commandLineArguments = arguments; + runnable.runMode = ApplicationLauncher::Gui; + if (QmlProfilerPlugin::debugOutput) { qWarning("QmlProfiler: Launching %s:%s", qPrintable(m_configuration.debuggee.executable), qPrintable(m_configuration.socket.isEmpty() ? QString::number(m_configuration.port) : m_configuration.socket)); } - m_launcher.setWorkingDirectory(m_configuration.debuggee.workingDirectory); - m_launcher.setEnvironment(m_configuration.debuggee.environment); connect(&m_launcher, &ApplicationLauncher::processExited, this, &LocalQmlProfilerRunner::spontaneousStop); - m_launcher.start(ApplicationLauncher::Gui, m_configuration.debuggee.executable, - arguments); + m_launcher.start(runnable); emit started(); } |