Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::ScriptHighlighter Class Reference

Highlighter of a document class used by edit widgets. More...

#include <ScriptHighlighter.h>

Inheritance diagram for sf::ScriptHighlighter:
Collaboration diagram for sf::ScriptHighlighter:

Public Member Functions

 ScriptHighlighter (ScriptInterpreter *script, QTextDocument *document)
 Constructor.
 

Protected Member Functions

void highlightBlock (const QString &text) override
 

Detailed Description

Highlighter of a document class used by edit widgets.

Highlights the document according the passed script interpreter.

Constructor & Destructor Documentation

◆ ScriptHighlighter()

sf::ScriptHighlighter::ScriptHighlighter ( ScriptInterpreter script,
QTextDocument *  document 
)
explicit

Constructor.

Parameters
scriptScript interpreter derived class.
documentDocument from a edit widget for example.

Member Function Documentation

◆ highlightBlock()

void sf::ScriptHighlighter::highlightBlock ( const QString &  text)
overrideprotected

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