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

void TextFinder::loadTextFile (  ) [private]

[4]

[5]

Definition at line 94 of file textfinder.cpp.

References QTextEdit::append(), QFile::close(), QFile::open(), and QTextStream::readAll().

Referenced by TextFinder().

{
    QFile inputFile(":/forms/input.txt");
    inputFile.open(QIODevice::ReadOnly);
    QTextStream in(&inputFile);
    QString line = in.readAll();
    inputFile.close();

    ui_textEdit->append(line);
    ui_textEdit->setUndoRedoEnabled(false);
    ui_textEdit->setUndoRedoEnabled(true);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index