Logo Search packages:      
Sourcecode: kconfigure version File versions  Download package

void Kconfigure::openViewFile ( const QString &  filename  )  [private]

Open file in main window

Definition at line 788 of file kconfigure.cpp.

References filePath, and view_main.

Referenced by slotReadCHANGELOG(), slotReadINSTALL(), and slotReadREADME().

{
      QString fname( filePath + filename );
      QFile file( filePath + filename );
      if ( file.open(IO_ReadOnly) )
      {
            QTextStream stream(&file);
            view_main->clear();
            view_main->setWordWrap( QMultiLineEdit::WidgetWidth );
            view_main->setText( stream.read() );
            file.close();
      }
}


Generated by  Doxygen 1.6.0   Back to index