MCPcopy Create free account
hub / github.com/IgKh/katvan / insertLabelRef

Method insertLabelRef

core/katvan_editor.cpp:1310–1317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1308}
1309
1310void Editor::insertLabelRef(const QString& label)
1311{
1312 QTextCursor cursor = textCursor();
1313 QString expression = d_codeModel->getLabelRefExpression(label, cursor.position());
1314
1315 cursor.insertText(expression);
1316 setTextCursor(cursor);
1317}
1318
1319bool Editor::canInsertFromMimeData(const QMimeData* source) const
1320{

Callers

nothing calls this directly

Calls 2

getLabelRefExpressionMethod · 0.80
positionMethod · 0.80

Tested by

no test coverage detected