TextEditor: Don't export KSyntaxHighlighting

Change-Id: I84fa8c758af412d8847391a628deac60279b9448
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-10-17 15:13:45 +02:00
parent ab23ee98f9
commit fdeff13ca3
4 changed files with 11 additions and 7 deletions

View File

@@ -285,8 +285,9 @@ CompilerWidget::CompilerWidget(const std::shared_ptr<SourceSettings> &sourceSett
m_asmEditor = new AsmEditorWidget(undoStack);
m_asmDocument = QSharedPointer<TextDocument>(new TextDocument);
m_asmEditor->setTextDocument(m_asmDocument);
m_asmEditor->configureGenericHighlighter(
TextEditor::Highlighter::definitionForName("Intel x86 (NASM)"));
QTC_ASSERT_EXPECTED(m_asmEditor->configureGenericHighlighter("Intel x86 (NASM)"),
m_asmEditor->configureGenericHighlighter(
Utils::mimeTypeForName("text/x-asm")));
m_asmEditor->setReadOnly(true);
connect(m_asmEditor, &AsmEditorWidget::gotFocus, this, &CompilerWidget::gotFocus);