| 82 | } |
| 83 | |
| 84 | void CodePortingManager::slotSelectedChanged(const QString &filePath, const QString &suggestion, int startLine, int endLine) |
| 85 | { |
| 86 | Q_UNUSED(endLine) |
| 87 | |
| 88 | editor.gotoLine(filePath, startLine); |
| 89 | if (auto editSrv = dpfGetService(EditorService)) { |
| 90 | editSrv->annotate(filePath, QString("CodePorting"), suggestion, startLine, Edit::NoteAnnotation); |
| 91 | QColor backgroundColor(Qt::red); |
| 92 | backgroundColor.setAlpha(100); |
| 93 | int marker = editSrv->backgroundMarkerDefine(filePath, backgroundColor, -1); |
| 94 | editSrv->setRangeBackgroundColor(filePath, startLine, endLine, marker); |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | void CodePortingManager::slotAppendOutput(const QString &content, OutputPane::OutputFormat format, OutputPane::AppendMode mode) |
| 99 | { |
nothing calls this directly
no test coverage detected