forked from qt-creator/qt-creator
SyntaxHighlighter: Fix tst_highlighter
Change-Id: I96c6c7b9843384d14bfa37b6bfdd494c881949af Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <texteditor/fontsettings.h>
|
||||
#include <texteditor/syntaxhighlighter.h>
|
||||
#include <texteditor/texteditorsettings.h>
|
||||
|
||||
#include <KSyntaxHighlighting/Definition>
|
||||
|
||||
@@ -28,7 +30,10 @@ public:
|
||||
QString text;
|
||||
};
|
||||
|
||||
BaseSyntaxHighlighterRunner(SyntaxHighLighterCreator creator, QTextDocument *document);
|
||||
BaseSyntaxHighlighterRunner(SyntaxHighLighterCreator creator,
|
||||
QTextDocument *document,
|
||||
const TextEditor::FontSettings &fontSettings
|
||||
= TextEditorSettings::fontSettings());
|
||||
virtual ~BaseSyntaxHighlighterRunner();
|
||||
|
||||
void setExtraFormats(const QMap<int, QList<QTextLayout::FormatRange>> &formats);
|
||||
|
||||
Reference in New Issue
Block a user