MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / onRightEditorTextChanged

Method onRightEditorTextChanged

widgets/RefactorWidget.cpp:511–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511void RefactorWidget::onRightEditorTextChanged()
512{
513 QString fullText = m_rightDocument->plainText();
514 int startPos = m_contextBefore.isEmpty() ? 0 : m_contextBefore.length() + 1;
515 int endPos = m_contextAfter.isEmpty() ? fullText.length() : fullText.length() - m_contextAfter.length() - 1;
516 m_applyText = fullText.mid(startPos, endPos - startPos);
517}
518
519void RefactorWidget::closeEvent(QCloseEvent *event)
520{

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected