forked from qt-creator/qt-creator
Ios: Pass context object to lambda connections
Change-Id: I69a7a2ff3e91256961b2b501e75fe1a21d9c8b6f Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -113,7 +113,7 @@ QWidget *IosBuildStep::createConfigWidget()
|
||||
resetDefaultsButton->setEnabled(!m_useDefaultArguments);
|
||||
});
|
||||
|
||||
connect(extraArgumentsLineEdit, &QLineEdit::editingFinished, [=] {
|
||||
connect(extraArgumentsLineEdit, &QLineEdit::editingFinished, this, [=] {
|
||||
setExtraArguments(ProcessArgs::splitArgs(extraArgumentsLineEdit->text()));
|
||||
});
|
||||
|
||||
|
@@ -72,14 +72,14 @@ public:
|
||||
// The future is canceled when app on simulator is stoped.
|
||||
QEventLoop loop;
|
||||
QFutureWatcher<void> watcher;
|
||||
connect(&watcher, &QFutureWatcher<void>::canceled, [&](){
|
||||
connect(&watcher, &QFutureWatcher<void>::canceled, this, [&] {
|
||||
loop.quit();
|
||||
});
|
||||
watcher.setFuture(fi.future());
|
||||
|
||||
// Process to print the console output while app is running.
|
||||
auto logProcess = [this, fi](QProcess *tailProcess, std::shared_ptr<QTemporaryFile> file) {
|
||||
QObject::connect(tailProcess, &QProcess::readyReadStandardOutput, [=]() {
|
||||
QObject::connect(tailProcess, &QProcess::readyReadStandardOutput, this, [=] {
|
||||
if (!fi.isCanceled())
|
||||
emit logMessage(QString::fromLocal8Bit(tailProcess->readAll()));
|
||||
});
|
||||
|
Reference in New Issue
Block a user