NDEVR
API Documentation
LanguageHighlighter

Syntactically highlights translations. More...

Public Member Functions

 LanguageHighlighter (QTextDocument *parent=0)
 Constructs a LanguageHighlighter for the given text document.
void setSearchString (const QString &search_string)
 Sets the search string to highlight in the translation text.

Protected Member Functions

void highlightBlock (const QString &text) override
 Applies highlighting rules to the given block of text.

Detailed Description

Syntactically highlights translations.


Definition at line 16 of file LanguageEditor.h.

Constructor & Destructor Documentation

◆ LanguageHighlighter()

LanguageHighlighter::LanguageHighlighter ( QTextDocument * parent = 0)

Constructs a LanguageHighlighter for the given text document.

Parameters
[in]parentThe text document to apply syntax highlighting to.

Member Function Documentation

◆ highlightBlock()

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

Applies highlighting rules to the given block of text.

Parameters
[in]textThe text block to highlight.

◆ setSearchString()

void LanguageHighlighter::setSearchString ( const QString & search_string)

Sets the search string to highlight in the translation text.

Parameters
[in]search_stringThe string pattern to highlight.

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