forked from qt-creator/qt-creator
Forked QSyntaxHighlighter from Qt 4.7.
We need our very own syntax highlighter in Qt Creator.
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include "basetextdocumentlayout.h"
|
||||
#include "basetexteditor.h"
|
||||
#include "storagesettings.h"
|
||||
#include "syntaxhighlighter.h"
|
||||
|
||||
#include <QtCore/QFile>
|
||||
#include <QtCore/QDir>
|
||||
@@ -357,7 +358,7 @@ void BaseTextDocument::reload(ReloadFlag flag, ChangeType type)
|
||||
}
|
||||
}
|
||||
|
||||
void BaseTextDocument::setSyntaxHighlighter(QSyntaxHighlighter *highlighter)
|
||||
void BaseTextDocument::setSyntaxHighlighter(SyntaxHighlighter *highlighter)
|
||||
{
|
||||
if (m_highlighter)
|
||||
delete m_highlighter;
|
||||
|
||||
Reference in New Issue
Block a user