Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QSyntaxHighlighter::QSyntaxHighlighter ( QTextEdit parent  ) 

Constructs a QSyntaxHighlighter and installs it on parent 's QTextDocument. The specified QTextEdit also becomes the owner of the QSyntaxHighlighter.

Definition at line 350 of file qsyntaxhighlighter.cpp.

References QTextEdit::document(), and setDocument().

    : QObject(*new QSyntaxHighlighterPrivate, parent)
{
    setDocument(parent->document());
}


Generated by  Doxygen 1.6.0   Back to index