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

Method applySyntaxHighlighting

widgets/RefactorWidget.cpp:542–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540}
541
542void RefactorWidget::applySyntaxHighlighting()
543{
544 if (!m_sourceEditor) {
545 return;
546 }
547
548 auto *sourceDoc = m_sourceEditor->textDocument();
549 if (!sourceDoc || !sourceDoc->syntaxHighlighter()) {
550 return;
551 }
552
553 m_leftDocument->setMimeType(sourceDoc->mimeType());
554 m_rightDocument->setMimeType(sourceDoc->mimeType());
555}
556
557void RefactorWidget::addLineMarkers()
558{

Callers

nothing calls this directly

Calls 1

textDocumentMethod · 0.80

Tested by

no test coverage detected