QtGui/qsyntaxhighlighter.h Source File
Go to the documentation of this file.
42 #ifndef QSYNTAXHIGHLIGHTER_H
43 #define QSYNTAXHIGHLIGHTER_H
47 #ifndef QT_NO_SYNTAXHIGHLIGHTER
59 class QSyntaxHighlighterPrivate;
76 void setDocument(QTextDocument *doc);
77 QTextDocument *document()
const;
81 void rehighlightBlock(
const QTextBlock &block);
84 virtual void highlightBlock(
const QString &text) = 0;
87 void setFormat(
int start,
int count,
const QColor &
color);
88 void setFormat(
int start,
int count,
const QFont &font);
89 QTextCharFormat
format(
int pos)
const;
91 int previousBlockState()
const;
92 int currentBlockState()
const;
93 void setCurrentBlockState(
int newState);
95 void setCurrentBlockUserData(QTextBlockUserData *
data);
96 QTextBlockUserData *currentBlockUserData()
const;
102 Q_PRIVATE_SLOT(d_func(),
void _q_reformatBlocks(
int from,
int charsRemoved,
int charsAdded))
110 #endif // QT_NO_SYNTAXHIGHLIGHTER
112 #endif // QSYNTAXHIGHLIGHTER_H
#define Q_PRIVATE_SLOT(d, signature)
#define QT_BEGIN_NAMESPACE
GLsizei GLsizei GLenum GLenum const GLvoid * data
GLenum GLsizei GLenum format
GLuint GLuint GLsizei count