Qt 5.10 Book Examples
Public Member Functions | Protected Types | Protected Member Functions | List of all members
SyntaxHighlighter Class Reference

#include <SyntaxHighlighter.h>

Inheritance diagram for SyntaxHighlighter:

Public Member Functions

 SyntaxHighlighter (QTextDocument *parent=0)
 

Protected Types

enum  { NormalState = -1, InsideCStyleComment, InsideCString }
 

Protected Member Functions

virtual void highlightBlock (const QString &)
 
QString getKeyword (int i, const QString &str) const
 

Detailed Description

Definition at line 18 of file SyntaxHighlighter.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
NormalState 
InsideCStyleComment 
InsideCString 

Definition at line 24 of file SyntaxHighlighter.h.

Constructor & Destructor Documentation

◆ SyntaxHighlighter()

SyntaxHighlighter::SyntaxHighlighter ( QTextDocument *  parent = 0)

Definition at line 15 of file SyntaxHighlighter.cpp.

Member Function Documentation

◆ getKeyword()

QString SyntaxHighlighter::getKeyword ( int  i,
const QString &  str 
) const
protected

Definition at line 96 of file SyntaxHighlighter.cpp.

◆ highlightBlock()

void SyntaxHighlighter::highlightBlock ( const QString &  str)
protectedvirtual

Definition at line 34 of file SyntaxHighlighter.cpp.


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