MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / slotSelectedChanged

Method slotSelectedChanged

src/plugins/codeporting/codeportingmanager.cpp:84–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void 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
98void CodePortingManager::slotAppendOutput(const QString &content, OutputPane::OutputFormat format, OutputPane::AppendMode mode)
99{

Callers

nothing calls this directly

Calls 5

QStringClass · 0.50
gotoLineMethod · 0.45
annotateMethod · 0.45

Tested by

no test coverage detected