Class, that describes JSON code highlighter. More...
#include <QJSONHighlighter.hpp>
Public Member Functions | |
QJSONHighlighter (QTextDocument *document=nullptr) | |
Constructor. More... | |
Public Member Functions inherited from QStyleSyntaxHighlighter | |
QStyleSyntaxHighlighter & | operator= (const QStyleSyntaxHighlighter &)=delete |
QStyleSyntaxHighlighter (const QStyleSyntaxHighlighter &)=delete | |
QStyleSyntaxHighlighter (QTextDocument *document=nullptr) | |
Constructor. More... | |
void | setSyntaxStyle (QSyntaxStyle *style) |
Method for setting syntax style. More... | |
QSyntaxStyle * | syntaxStyle () const |
Method for getting syntax style. More... | |
Protected Member Functions | |
void | highlightBlock (const QString &text) override |
Private Attributes | |
QVector< QHighlightRule > | m_highlightRules |
QRegularExpression | m_keyRegex |
Class, that describes JSON code highlighter.
Definition at line 14 of file QJSONHighlighter.hpp.
|
explicit |
Constructor.
document | Pointer to document. |
Definition at line 6 of file QJSONHighlighter.cpp.
|
overrideprotected |
|
private |
Definition at line 30 of file QJSONHighlighter.hpp.
|
private |
Definition at line 31 of file QJSONHighlighter.hpp.