| 257 | } |
| 258 | |
| 259 | void 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 | |
| 273 | void ProblemModel::addProblem(const IProblem::Ptr &problem) |
| 274 | { |