Skip to content
Snippets Groups Projects
Commit 2d245f81 authored by Leandro Melo's avatar Leandro Melo
Browse files

Generic highlighter: Fix autotest.

Reviewed-by: Bill King
parent ef516bf4
No related branches found
No related tags found
No related merge requests found
...@@ -31,13 +31,24 @@ ...@@ -31,13 +31,24 @@
#define SYNTAXHIGHLIGHTER_H #define SYNTAXHIGHLIGHTER_H
// Replaces the "real" syntaxhighlighter.h file. The scope of this test is restricted to the // Replaces the "real" syntaxhighlighter.h file. The scope of this test is restricted to the
// highlight definition's context engine. Using QSyntaxHighlighter as a base instead of the // highlight definition's context engine. Using a mock derived from QSyntaxHighlighter as a
// real TextEditor::SyntaxHighlighter should not affect it. // base instead of the real TextEditor::SyntaxHighlighter should not affect it.
#include <QtGui/QSyntaxHighlighter> #include <QtGui/QSyntaxHighlighter>
namespace TextEditor { namespace TextEditor {
typedef QSyntaxHighlighter SyntaxHighlighter;
class SyntaxHighlighter : public QSyntaxHighlighter
{
public:
SyntaxHighlighter(QTextDocument *parent) : QSyntaxHighlighter(parent) {}
virtual ~SyntaxHighlighter() {}
protected:
void SyntaxHighlighter::applyFormatToSpaces(const QString &, const QTextCharFormat &)
{}
};
} }
#endif //SYNTAXHIGHLIGHTER_H #endif //SYNTAXHIGHLIGHTER_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment