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

Method triggerDefaultHandler

src/plugins/builder/tasks/taskmanager.cpp:148–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void TaskManager::triggerDefaultHandler(const QModelIndex &index)
149{
150 if (!index.isValid())
151 return;
152
153 auto realIndex = filterModel->mapToSource(index);
154 Task task(model->task(realIndex));
155 if (task.isNull())
156 return;
157
158 if (task.file.exists()) {
159 editor.gotoLine(task.file.toString(), task.movedLine - 1);
160 }
161}

Callers

nothing calls this directly

Calls 7

mapToSourceMethod · 0.80
isValidMethod · 0.45
taskMethod · 0.45
isNullMethod · 0.45
existsMethod · 0.45
gotoLineMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected