MCPcopy Create free account
hub / github.com/KDAB/GammaRay / startProcess

Method startProcess

ui/helpcontroller.cpp:45–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void HelpControllerPrivate::startProcess()
46{
47 if (proc)
48 return;
49
50 proc = new QProcess(QCoreApplication::instance());
51 proc->setProcessChannelMode(QProcess::ForwardedChannels);
52 QObject::connect(proc,
53 static_cast<void (QProcess::*)(int,
54 QProcess::ExitStatus)>(&QProcess::finished),
55 proc,
56 [this]() {
57 proc->deleteLater();
58 proc = nullptr;
59 });
60 proc->setProgram(assistantPath);
61 proc->setArguments(QStringList()
62 << QLatin1String("-collectionFile")
63 << qhcPath
64 << QLatin1String("-enableRemoteControl"));
65 proc->start();
66 proc->waitForStarted();
67 sendCommand("expandToc 2;");
68}
69
70void HelpControllerPrivate::sendCommand(const QByteArray &cmd) const
71{

Callers 2

openContentsMethod · 0.80
openPageMethod · 0.80

Calls 1

startMethod · 0.45

Tested by

no test coverage detected