src/hbutils/document/hbdocumentloader.cpp
changeset 7 923ff622b8b9
parent 6 c3690ec91ef8
child 21 4633027730f5
child 34 ed14f46c0e55
equal deleted inserted replaced
6:c3690ec91ef8 7:923ff622b8b9
   107 */
   107 */
   108 QObjectList HbDocumentLoader::load( const QString &fileName, const QString &section , bool *ok )
   108 QObjectList HbDocumentLoader::load( const QString &fileName, const QString &section , bool *ok )
   109 {
   109 {
   110     QFile file( fileName );
   110     QFile file( fileName );
   111     
   111     
   112     if( !file.open( QFile::ReadOnly | QFile::Text ) ) {
   112     if( !file.open( QFile::ReadOnly ) ) {
   113         qWarning( "Unable to open file" );
   113         qWarning( "Unable to open file" );
   114         if( ok ) {
   114         if( ok ) {
   115             *ok = false;
   115             *ok = false;
   116         }
   116         }
   117         return QList<QObject *>();
   117         return QList<QObject *>();