MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / insertCompletion

Method insertCompletion

MiniZincIDE/codeeditor.cpp:107–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void CodeEditor::insertCompletion(const QString &completion)
108{
109 QTextCursor tc = textCursor();
110 int extra = completion.length() - completer->completionPrefix().length();
111 tc.movePosition(QTextCursor::Left);
112 tc.movePosition(QTextCursor::EndOfWord);
113 tc.insertText(completion.right(extra));
114 setTextCursor(tc);
115}
116
117void CodeEditor::loadedLargeFile()
118{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected