forked from qt-creator/qt-creator
Boot2qt, Qnx: Pass context object to lambda connections
Change-Id: I64c5ed32035f161920a7ba08fa67de7bee6653a3 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -35,10 +35,10 @@ public:
|
|||||||
connect(&m_launcher, &QtcProcess::started, this, &RunWorker::reportStarted);
|
connect(&m_launcher, &QtcProcess::started, this, &RunWorker::reportStarted);
|
||||||
connect(&m_launcher, &QtcProcess::done, this, &RunWorker::reportStopped);
|
connect(&m_launcher, &QtcProcess::done, this, &RunWorker::reportStopped);
|
||||||
|
|
||||||
connect(&m_launcher, &QtcProcess::readyReadStandardOutput, [this] {
|
connect(&m_launcher, &QtcProcess::readyReadStandardOutput, this, [this] {
|
||||||
appendMessage(QString::fromUtf8(m_launcher.readAllStandardOutput()), StdOutFormat);
|
appendMessage(QString::fromUtf8(m_launcher.readAllStandardOutput()), StdOutFormat);
|
||||||
});
|
});
|
||||||
connect(&m_launcher, &QtcProcess::readyReadStandardError, [this] {
|
connect(&m_launcher, &QtcProcess::readyReadStandardError, this, [this] {
|
||||||
appendMessage(QString::fromUtf8(m_launcher.readAllStandardError()), StdErrFormat);
|
appendMessage(QString::fromUtf8(m_launcher.readAllStandardError()), StdErrFormat);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -46,7 +46,7 @@ public:
|
|||||||
sdpPathChooser->setHistoryCompleter("Qnx.Sdp.History");
|
sdpPathChooser->setHistoryCompleter("Qnx.Sdp.History");
|
||||||
sdpPathChooser->setFilePath(version->sdpPath());
|
sdpPathChooser->setFilePath(version->sdpPath());
|
||||||
|
|
||||||
connect(sdpPathChooser, &PathChooser::rawPathChanged, [this, version, sdpPathChooser] {
|
connect(sdpPathChooser, &PathChooser::rawPathChanged, this, [this, version, sdpPathChooser] {
|
||||||
version->setSdpPath(sdpPathChooser->filePath());
|
version->setSdpPath(sdpPathChooser->filePath());
|
||||||
emit changed();
|
emit changed();
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user