| 105 | } |
| 106 | |
| 107 | void 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 | |
| 117 | void CodeEditor::loadedLargeFile() |
| 118 | { |
nothing calls this directly
no outgoing calls
no test coverage detected