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

void Q3MultiLineEdit::insertAndMark ( const QString str,
bool  mark 
) [protected, virtual]

Inserts str at the current cursor position and selects the text if mark is true.

Definition at line 266 of file q3multilineedit.cpp.

References Q3TextEdit::document(), Q3TextEdit::insert(), and Q3TextEdit::textCursor().

    if (mark)
        document()->setSelectionEnd(Q3TextDocument::Standard, *textCursor());

Generated by  Doxygen 1.6.0   Back to index