summaryrefslogtreecommitdiff
path: root/src/plugins/valgrind/valgrindplugin.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2016-01-22 17:08:50 +0100
committerUlf Hermann <ulf.hermann@theqtcompany.com>2016-01-22 17:26:17 +0000
commita1dd1e4c5bf4d3c5fe50f7b89a6f185ad4a622b0 (patch)
tree7af169437d46d48e05c1661fda7a38e98afe315a /src/plugins/valgrind/valgrindplugin.cpp
parent0f4db8a32fc5665bdc4f40999b2741932f0b051b (diff)
downloadqt-creator-a1dd1e4c5bf4d3c5fe50f7b89a6f185ad4a622b0.tar.gz
Add runConfiguration to remote tool starters
Most of them need a run configuration. It's better to pass the right one than to use various hacky ways to work around it. Change-Id: Ic21b0ef33bdd79b526b1e1a1ead5ca87d9f32c4d Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/plugins/valgrind/valgrindplugin.cpp')
-rw-r--r--src/plugins/valgrind/valgrindplugin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/valgrind/valgrindplugin.cpp b/src/plugins/valgrind/valgrindplugin.cpp
index ef0e75e4b8..3d5f970100 100644
--- a/src/plugins/valgrind/valgrindplugin.cpp
+++ b/src/plugins/valgrind/valgrindplugin.cpp
@@ -187,11 +187,11 @@ void ValgrindPlugin::extensionsInitialized()
action->setActionId("Memcheck.Remote");
action->setToolId("Memcheck");
action->setWidgetCreator(mcWidgetCreator);
- action->setCustomToolStarter([mcTool] {
+ action->setCustomToolStarter([mcTool](ProjectExplorer::RunConfiguration *runConfig) {
StartRemoteDialog dlg;
if (dlg.exec() != QDialog::Accepted)
return;
- ValgrindRunControl *rc = mcTool->createRunControl(0, MEMCHECK_RUN_MODE);
+ ValgrindRunControl *rc = mcTool->createRunControl(runConfig, MEMCHECK_RUN_MODE);
QTC_ASSERT(rc, return);
AnalyzerRunnable runnable;
runnable.debuggee = dlg.executable();
@@ -214,11 +214,11 @@ void ValgrindPlugin::extensionsInitialized()
action->setActionId(CallgrindRemoteActionId);
action->setToolId(CallgrindToolId);
action->setWidgetCreator(cgWidgetCreator);
- action->setCustomToolStarter([cgTool] {
+ action->setCustomToolStarter([cgTool](ProjectExplorer::RunConfiguration *runConfig) {
StartRemoteDialog dlg;
if (dlg.exec() != QDialog::Accepted)
return;
- ValgrindRunControl *rc = cgTool->createRunControl(0);
+ ValgrindRunControl *rc = cgTool->createRunControl(runConfig);
QTC_ASSERT(rc, return);
AnalyzerRunnable runnable;
runnable.debuggee = dlg.executable();