| 540 | } |
| 541 | |
| 542 | void 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 | |
| 557 | void RefactorWidget::addLineMarkers() |
| 558 | { |
nothing calls this directly
no test coverage detected