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

void QPlainTextEdit::setCurrentCharFormat ( const QTextCharFormat format  ) 

Sets the char format that is be used when inserting new text to format by calling QTextCursor::setCharFormat() on the editor's cursor. If the editor has a selection then the char format is directly applied to the selection.

Definition at line 2414 of file qplaintextedit.cpp.

{
    Q_D(QPlainTextEdit);
    d->control->setCurrentCharFormat(format);
}


Generated by  Doxygen 1.6.0   Back to index