Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/shell/runtimecontroller.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 46 | void startProcess(QProcess *process) const override { | |||
---|---|---|---|---|---|
47 | connect(process, &QProcess::errorOccurred, | 47 | connect(process, &QProcess::errorOccurred, | ||
48 | this, [](QProcess::ProcessError error) { | 48 | this, [](QProcess::ProcessError error) { | ||
49 | qCWarning(SHELL) << "process finished with error:" << error; | 49 | qCWarning(SHELL) << "process finished with error:" << error; | ||
50 | }); | 50 | }); | ||
51 | process->start(); | 51 | process->start(); | ||
52 | } | 52 | } | ||
53 | KDevelop::Path pathInHost(const KDevelop::Path & runtimePath) const override { return runtimePath; } | 53 | KDevelop::Path pathInHost(const KDevelop::Path & runtimePath) const override { return runtimePath; } | ||
54 | KDevelop::Path pathInRuntime(const KDevelop::Path & localPath) const override { return localPath; } | 54 | KDevelop::Path pathInRuntime(const KDevelop::Path & localPath) const override { return localPath; } | ||
55 | QString findExecutable(const QString& executableName, | ||||
56 | const QStringList& paths = QStringList()) const override { | ||||
mwolff: brace on its own line please | |||||
57 | return QStandardPaths::findExecutable(executableName, paths); | ||||
58 | } | ||||
55 | void setEnabled(bool /*enabled*/) override {} | 59 | void setEnabled(bool /*enabled*/) override {} | ||
56 | QByteArray getenv(const QByteArray & varname) const override { return qgetenv(varname.constData()); } | 60 | QByteArray getenv(const QByteArray & varname) const override { return qgetenv(varname.constData()); } | ||
57 | KDevelop::Path buildPath() const override { return {}; } | 61 | KDevelop::Path buildPath() const override { return {}; } | ||
58 | }; | 62 | }; | ||
59 | 63 | | |||
60 | KDevelop::RuntimeController::RuntimeController(KDevelop::Core* core) | 64 | KDevelop::RuntimeController::RuntimeController(KDevelop::Core* core) | ||
61 | : m_core(core) | 65 | : m_core(core) | ||
62 | { | 66 | { | ||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |
brace on its own line please