Public Member Functions | Protected Member Functions | Private Attributes | List of all members
QJSONHighlighter Class Reference

Class, that describes JSON code highlighter. More...

#include <QJSONHighlighter.hpp>

Inheritance diagram for QJSONHighlighter:
Inheritance graph
[legend]

Public Member Functions

 QJSONHighlighter (QTextDocument *document=nullptr)
 Constructor. More...
 
- Public Member Functions inherited from QStyleSyntaxHighlighter
QStyleSyntaxHighlighteroperator= (const QStyleSyntaxHighlighter &)=delete
 
 QStyleSyntaxHighlighter (const QStyleSyntaxHighlighter &)=delete
 
 QStyleSyntaxHighlighter (QTextDocument *document=nullptr)
 Constructor. More...
 
void setSyntaxStyle (QSyntaxStyle *style)
 Method for setting syntax style. More...
 
QSyntaxStylesyntaxStyle () const
 Method for getting syntax style. More...
 

Protected Member Functions

void highlightBlock (const QString &text) override
 

Private Attributes

QVector< QHighlightRulem_highlightRules
 
QRegularExpression m_keyRegex
 

Detailed Description

Class, that describes JSON code highlighter.

Definition at line 14 of file QJSONHighlighter.hpp.

Constructor & Destructor Documentation

◆ QJSONHighlighter()

QJSONHighlighter::QJSONHighlighter ( QTextDocument *  document = nullptr)
explicit

Constructor.

Parameters
documentPointer to document.

Definition at line 6 of file QJSONHighlighter.cpp.

Member Function Documentation

◆ highlightBlock()

void QJSONHighlighter::highlightBlock ( const QString &  text)
overrideprotected

Member Data Documentation

◆ m_highlightRules

QVector<QHighlightRule> QJSONHighlighter::m_highlightRules
private

Definition at line 30 of file QJSONHighlighter.hpp.

◆ m_keyRegex

QRegularExpression QJSONHighlighter::m_keyRegex
private

Definition at line 31 of file QJSONHighlighter.hpp.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:50