QSyntaxHighlighter Class Reference
[QtGui module]
Inherits QObject.
Methods
- __init__ (self, QTextEdit)
- __init__ (self, QTextDocument)
- __init__ (self, QObject)
- QTextBlock currentBlock (self)
- int currentBlockState (self)
- QTextBlockUserData currentBlockUserData (self)
- QTextDocument document (self)
- QTextCharFormat format (self, int)
- highlightBlock (self, QString)
- int previousBlockState (self)
- rehighlight (self)
- rehighlightBlock (self, QTextBlock)
- setCurrentBlockState (self, int)
- setCurrentBlockUserData (self, QTextBlockUserData)
- setDocument (self, QTextDocument)
- setFormat (self, int, int, QTextCharFormat)
- setFormat (self, int, int, QColor)
- setFormat (self, int, int, QFont)
Detailed Description
Method Documentation
QSyntaxHighlighter.__init__ (self, QTextEdit)
The QTextEdit argument, if not None, causes self to be owned by Qt instead of PyQt.
QSyntaxHighlighter.__init__ (self, QTextDocument)
The QTextDocument argument, if not None, causes self to be owned by Qt instead of PyQt.
QSyntaxHighlighter.__init__ (self, QObject)
The QObject argument, if not None, causes self to be owned by Qt instead of PyQt.
QTextBlock QSyntaxHighlighter.currentBlock (self)
int QSyntaxHighlighter.currentBlockState (self)
QTextBlockUserData QSyntaxHighlighter.currentBlockUserData (self)
QTextDocument QSyntaxHighlighter.document (self)
QTextCharFormat QSyntaxHighlighter.format (self, int)
QSyntaxHighlighter.highlightBlock (self, QString)
This method is abstract and should be reimplemented in any sub-class.
int QSyntaxHighlighter.previousBlockState (self)
QSyntaxHighlighter.rehighlight (self)
This method is also a Qt slot with the C++ signature void rehighlight().
QSyntaxHighlighter.rehighlightBlock (self, QTextBlock)
This method is also a Qt slot with the C++ signature void rehighlightBlock(const QTextBlock&).
QSyntaxHighlighter.setCurrentBlockState (self, int)
QSyntaxHighlighter.setCurrentBlockUserData (self, QTextBlockUserData)
The QTextBlockUserData argument has it's ownership transferred to Qt.
QSyntaxHighlighter.setDocument (self, QTextDocument)
QSyntaxHighlighter.setFormat (self, int, int, QTextCharFormat)
QSyntaxHighlighter.setFormat (self, int, int, QColor)
QSyntaxHighlighter.setFormat (self, int, int, QFont)