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

Class, that describes C++ code highlighter. More...

#include <QCXXHighlighter.hpp>

Inheritance diagram for QCXXHighlighter:
Inheritance graph
[legend]

Public Member Functions

 QCXXHighlighter (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

QRegularExpression m_commentEndPattern
 
QRegularExpression m_commentStartPattern
 
QRegularExpression m_defTypePattern
 
QRegularExpression m_functionPattern
 
QVector< QHighlightRulem_highlightRules
 
QRegularExpression m_includePattern
 

Detailed Description

Class, that describes C++ code highlighter.

Definition at line 17 of file QCXXHighlighter.hpp.

Constructor & Destructor Documentation

◆ QCXXHighlighter()

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

Constructor.

Parameters
documentPointer to document.

Member Function Documentation

◆ highlightBlock()

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

Definition at line 72 of file QCXXHighlighter.cpp.

Member Data Documentation

◆ m_commentEndPattern

QRegularExpression QCXXHighlighter::m_commentEndPattern
private

Definition at line 40 of file QCXXHighlighter.hpp.

◆ m_commentStartPattern

QRegularExpression QCXXHighlighter::m_commentStartPattern
private

Definition at line 39 of file QCXXHighlighter.hpp.

◆ m_defTypePattern

QRegularExpression QCXXHighlighter::m_defTypePattern
private

Definition at line 37 of file QCXXHighlighter.hpp.

◆ m_functionPattern

QRegularExpression QCXXHighlighter::m_functionPattern
private

Definition at line 36 of file QCXXHighlighter.hpp.

◆ m_highlightRules

QVector<QHighlightRule> QCXXHighlighter::m_highlightRules
private

Definition at line 33 of file QCXXHighlighter.hpp.

◆ m_includePattern

QRegularExpression QCXXHighlighter::m_includePattern
private

Definition at line 35 of file QCXXHighlighter.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