MCPcopy Create free account
hub / github.com/KDE/kdevelop / start

Function start

plugins/meson/mesonbuilder.cpp:31–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29using namespace KDevelop;
30
31class ErrorJob : public OutputJob
32{
33 Q_OBJECT
34public:
35 ErrorJob(QObject* parent, const QString& error)
36 : OutputJob(parent)
37 , m_error(error)
38 {
39 setStandardToolView(IOutputView::BuildView);
40 }
41
42 void start() override
43 {
44 auto* output = new OutputModel(this);
45 setModel(output);
46 startOutput();
47
48 output->appendLine(i18n(" *** MESON ERROR ***\n"));
49 QStringList lines = m_error.split(QLatin1Char('\n'));
50 output->appendLines(lines);
51
52 setError(!m_error.isEmpty());
53 setErrorText(m_error);
54 emitResult();
55 }
56
57private:
58 QString m_error;

Callers 14

startMethod · 0.50
startMethod · 0.50
startMethod · 0.50
startMethod · 0.50
startMethod · 0.50
toRangeMethod · 0.50
toRangeInRevisionMethod · 0.50
startMethod · 0.50
startMethod · 0.50
startMethod · 0.50
startMethod · 0.50
successfulConnectionMethod · 0.50

Calls 4

appendLineMethod · 0.45
splitMethod · 0.45
appendLinesMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected