forked from qt-creator/qt-creator
VcsCommand: Fix indentation in lambda
Change-Id: I6b62f10ad754a40027cfe1b5e0f2343b30701b18 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
b55e06716b
commit
3815affad5
@@ -40,27 +40,27 @@ VcsCommand::VcsCommand(const QString &workingDirectory,
|
|||||||
m_preventRepositoryChanged(false)
|
m_preventRepositoryChanged(false)
|
||||||
{
|
{
|
||||||
setOutputProxyFactory([this]() -> Utils::OutputProxy * {
|
setOutputProxyFactory([this]() -> Utils::OutputProxy * {
|
||||||
auto proxy = new Utils::OutputProxy;
|
auto proxy = new Utils::OutputProxy;
|
||||||
VcsOutputWindow *outputWindow = VcsOutputWindow::instance();
|
VcsOutputWindow *outputWindow = VcsOutputWindow::instance();
|
||||||
|
|
||||||
connect(proxy, &Utils::OutputProxy::append,
|
connect(proxy, &Utils::OutputProxy::append,
|
||||||
outputWindow, [](const QString &txt) { VcsOutputWindow::append(txt); },
|
outputWindow, [](const QString &txt) { VcsOutputWindow::append(txt); },
|
||||||
Qt::QueuedConnection);
|
Qt::QueuedConnection);
|
||||||
connect(proxy, &Utils::OutputProxy::appendSilently,
|
connect(proxy, &Utils::OutputProxy::appendSilently,
|
||||||
outputWindow, &VcsOutputWindow::appendSilently,
|
outputWindow, &VcsOutputWindow::appendSilently,
|
||||||
Qt::QueuedConnection);
|
Qt::QueuedConnection);
|
||||||
connect(proxy, &Utils::OutputProxy::appendError,
|
connect(proxy, &Utils::OutputProxy::appendError,
|
||||||
outputWindow, &VcsOutputWindow::appendError,
|
outputWindow, &VcsOutputWindow::appendError,
|
||||||
Qt::QueuedConnection);
|
Qt::QueuedConnection);
|
||||||
connect(proxy, &Utils::OutputProxy::appendCommand,
|
connect(proxy, &Utils::OutputProxy::appendCommand,
|
||||||
outputWindow, &VcsOutputWindow::appendCommand,
|
outputWindow, &VcsOutputWindow::appendCommand,
|
||||||
Qt::QueuedConnection);
|
Qt::QueuedConnection);
|
||||||
connect(proxy, &Utils::OutputProxy::appendMessage,
|
connect(proxy, &Utils::OutputProxy::appendMessage,
|
||||||
outputWindow, &VcsOutputWindow::appendMessage,
|
outputWindow, &VcsOutputWindow::appendMessage,
|
||||||
Qt::QueuedConnection);
|
Qt::QueuedConnection);
|
||||||
|
|
||||||
return proxy;
|
return proxy;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const QProcessEnvironment VcsCommand::processEnvironment() const
|
const QProcessEnvironment VcsCommand::processEnvironment() const
|
||||||
|
|||||||
Reference in New Issue
Block a user