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

QString Q3MultiLineEdit::textLine ( int  line  )  const

Returns the text at line number line (possibly the empty string), or a null if line is invalid.

Definition at line 503 of file q3multilineedit.cpp.

References Q3TextEdit::document(), QString::length(), numLines, and QString::truncate().

    if (line < 0 || line >= numLines())
        return QString();
    QString str = document()->paragAt(line)->string()->toString();
    str.truncate(str.length() - 1);
    return str;

Generated by  Doxygen 1.6.0   Back to index