MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / setError

Method setError

gui/codeeditor.cpp:329–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329void CodeEditor::setError(const QString &code, int errorLine, const QStringList &symbols)
330{
331 mHighlighter->setSymbols(symbols);
332
333 setPlainText(code);
334
335 mErrorPosition = getPos(code, errorLine);
336 QTextCursor tc = textCursor();
337 tc.setPosition(mErrorPosition);
338 setTextCursor(tc);
339 centerCursor();
340
341 highlightErrorLine();
342}
343
344void CodeEditor::setError(int errorLine, const QStringList &symbols)
345{

Callers 3

showSrcFileMethod · 0.80
StyleEditDialogMethod · 0.80
updateDetailsMethod · 0.80

Calls 2

getPosFunction · 0.85
setSymbolsMethod · 0.80

Tested by

no test coverage detected