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

Method setPlaceholderText

kdevplatform/shell/problemmodel.cpp:259–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void ProblemModel::setPlaceholderText(const QString& text, const KDevelop::DocumentRange& location, const QString& source)
260{
261 Q_D(ProblemModel);
262
263 d->m_placeholderText = text;
264 d->m_placeholderLocation = location;
265 d->m_placeholderSource = source;
266
267 if (d->m_isPlaceholderShown || d->m_problems->count() == 0) {
268 // clearing will show/update the new placeholder
269 clearProblems();
270 }
271}
272
273void ProblemModel::addProblem(const IProblem::Ptr &problem)
274{

Callers 15

testPlaceholderTextMethod · 0.80
setupActionsMethod · 0.80
ProjectConfigPageMethod · 0.80
ChecksWidgetMethod · 0.80
GlobalConfigPageMethod · 0.80
ProviderWidgetMethod · 0.80
CommitToolViewMethod · 0.80
SimpleCommitFormMethod · 0.80

Calls 1

countMethod · 0.45

Tested by 2

testPlaceholderTextMethod · 0.64
TestViewMethod · 0.64