refactor: add context object for lambdas
This commit is contained in:
parent
90d27a174d
commit
560345cf4f
2 changed files with 4 additions and 4 deletions
|
|
@ -198,7 +198,7 @@ void MainWindow::connectSlots()
|
||||||
connect(&m_CoreProcess, &CoreProcess::error, this, &MainWindow::onCoreProcessError);
|
connect(&m_CoreProcess, &CoreProcess::error, this, &MainWindow::onCoreProcessError);
|
||||||
|
|
||||||
connect(
|
connect(
|
||||||
&m_CoreProcess, &CoreProcess::logLine, //
|
&m_CoreProcess, &CoreProcess::logLine, this, //
|
||||||
[this](const QString &line) { handleLogLine(line); }
|
[this](const QString &line) { handleLogLine(line); }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -211,7 +211,7 @@ void MainWindow::connectSlots()
|
||||||
connect(ui->m_pActionMinimize, &QAction::triggered, this, &MainWindow::hide);
|
connect(ui->m_pActionMinimize, &QAction::triggered, this, &MainWindow::hide);
|
||||||
|
|
||||||
connect(
|
connect(
|
||||||
ui->m_pActionRestore, &QAction::triggered, //
|
ui->m_pActionRestore, &QAction::triggered, this, //
|
||||||
[this]() { showAndActivate(); }
|
[this]() { showAndActivate(); }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -269,7 +269,7 @@ void MainWindow::onShown()
|
||||||
// this we delay the error dialog raise by a split second. this seems a bit
|
// this we delay the error dialog raise by a split second. this seems a bit
|
||||||
// hacky and fragile, so maybe there's a better approach.
|
// hacky and fragile, so maybe there's a better approach.
|
||||||
const auto kCriticalDialogDelay = 100;
|
const auto kCriticalDialogDelay = 100;
|
||||||
QTimer::singleShot(kCriticalDialogDelay, [] { messages::raiseCriticalDialog(); });
|
QTimer::singleShot(kCriticalDialogDelay, this, [] { messages::raiseCriticalDialog(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::onConfigScopesSaving()
|
void MainWindow::onConfigScopesSaving()
|
||||||
|
|
|
||||||
|
|
@ -188,7 +188,7 @@ CoreProcess::CoreProcess(const IAppConfig &appConfig, const IServerConfig &serve
|
||||||
&m_pDeps->process(), &QProcessProxy::readyReadStandardError, this, &CoreProcess::onProcessReadyReadStandardError
|
&m_pDeps->process(), &QProcessProxy::readyReadStandardError, this, &CoreProcess::onProcessReadyReadStandardError
|
||||||
);
|
);
|
||||||
|
|
||||||
connect(&m_retryTimer, &QTimer::timeout, [this] {
|
connect(&m_retryTimer, &QTimer::timeout, this, [this] {
|
||||||
if (m_processState == ProcessState::RetryPending) {
|
if (m_processState == ProcessState::RetryPending) {
|
||||||
start();
|
start();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue