QmlProfiler: Add a "this" to capture list

Change-Id: I8bd7b0a8e488ee79262a46406f818d86326aabda
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
hjk
2016-07-19 16:17:35 +02:00
committed by hjk
parent 9617520e52
commit 3b233033b9

View File

@@ -374,7 +374,7 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunControl *runControl)
connect(runControl, &QmlProfilerRunControl::processRunning, connect(runControl, &QmlProfilerRunControl::processRunning,
d->m_profilerConnections, &QmlProfilerClientManager::connectTcpClient); d->m_profilerConnections, &QmlProfilerClientManager::connectTcpClient);
connect(clientManager, &QmlProfilerClientManager::connectionFailed, connect(clientManager, &QmlProfilerClientManager::connectionFailed,
runControl, [clientManager, runControl]() { runControl, [this, clientManager, runControl]() {
QMessageBox *infoBox = new QMessageBox(ICore::mainWindow()); QMessageBox *infoBox = new QMessageBox(ICore::mainWindow());
infoBox->setIcon(QMessageBox::Critical); infoBox->setIcon(QMessageBox::Critical);
infoBox->setWindowTitle(tr("Qt Creator")); infoBox->setWindowTitle(tr("Qt Creator"));