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

Method start

plugins/makebuilder/makejob.cpp:91–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void MakeJob::start()
92{
93 ProjectBaseItem* it = item();
94 qCDebug(KDEV_MAKEBUILDER) << "Building with make" << m_command << m_overrideTargets.join(QLatin1Char(' '));
95 if (!it)
96 {
97 setError(ItemNoLongerValidError);
98 setErrorText(i18n("Build item no longer available"));
99 emitResult();
100 return;
101 }
102
103 if( it->type() == KDevelop::ProjectBaseItem::File ) {
104 setError(IncorrectItemError);
105 setErrorText(i18n("Internal error: cannot build a file item"));
106 emitResult();
107 return;
108 }
109
110 setStandardToolView(IOutputView::BuildView);
111 setBehaviours(KDevelop::IOutputView::AllowUserClose | KDevelop::IOutputView::AutoScroll);
112
113 OutputExecuteJob::start();
114}
115
116KDevelop::ProjectBaseItem * MakeJob::item() const
117{

Callers 1

ManPageDocumentationMethod · 0.45

Calls 3

joinMethod · 0.80
startFunction · 0.50
typeMethod · 0.45

Tested by

no test coverage detected