chore: Adjust Clang-format linter rules
120 Column Lines Block Indent for Bracket Align Custom Line Break Rules No Single Line Functions
This commit is contained in:
@ -19,44 +19,57 @@
|
||||
|
||||
namespace deskflow::gui::proxy {
|
||||
|
||||
void QProcessProxy::create() {
|
||||
void QProcessProxy::create()
|
||||
{
|
||||
m_pProcess = std::make_unique<QProcess>();
|
||||
|
||||
connect(
|
||||
m_pProcess.get(), &QProcess::finished, this,
|
||||
[this](int exitCode, QProcess::ExitStatus exitStatus) {
|
||||
emit finished(exitCode, exitStatus);
|
||||
});
|
||||
connect(m_pProcess.get(), &QProcess::finished, this, [this](int exitCode, QProcess::ExitStatus exitStatus) {
|
||||
emit finished(exitCode, exitStatus);
|
||||
});
|
||||
|
||||
connect(
|
||||
m_pProcess.get(), &QProcess::readyReadStandardOutput, //
|
||||
this, [this]() { emit readyReadStandardOutput(); });
|
||||
this, [this]() { emit readyReadStandardOutput(); }
|
||||
);
|
||||
|
||||
connect(
|
||||
m_pProcess.get(), &QProcess::readyReadStandardError, //
|
||||
this, [this]() { emit readyReadStandardError(); });
|
||||
this, [this]() { emit readyReadStandardError(); }
|
||||
);
|
||||
}
|
||||
|
||||
QProcessProxy::operator bool() const { return m_pProcess.get(); }
|
||||
QProcessProxy::operator bool() const
|
||||
{
|
||||
return m_pProcess.get();
|
||||
}
|
||||
|
||||
void QProcessProxy::start(
|
||||
const QString &program, const QStringList &arguments) {
|
||||
void QProcessProxy::start(const QString &program, const QStringList &arguments)
|
||||
{
|
||||
m_pProcess->start(program, arguments);
|
||||
}
|
||||
|
||||
bool QProcessProxy::waitForStarted() { return m_pProcess->waitForStarted(); }
|
||||
bool QProcessProxy::waitForStarted()
|
||||
{
|
||||
return m_pProcess->waitForStarted();
|
||||
}
|
||||
|
||||
QProcess::ProcessState QProcessProxy::state() const {
|
||||
QProcess::ProcessState QProcessProxy::state() const
|
||||
{
|
||||
return m_pProcess->state();
|
||||
}
|
||||
|
||||
void QProcessProxy::close() { m_pProcess->close(); }
|
||||
void QProcessProxy::close()
|
||||
{
|
||||
m_pProcess->close();
|
||||
}
|
||||
|
||||
QString QProcessProxy::readAllStandardOutput() {
|
||||
QString QProcessProxy::readAllStandardOutput()
|
||||
{
|
||||
return m_pProcess->readAllStandardOutput();
|
||||
}
|
||||
|
||||
QString QProcessProxy::readAllStandardError() {
|
||||
QString QProcessProxy::readAllStandardError()
|
||||
{
|
||||
return m_pProcess->readAllStandardError();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user