add a loadDocumentInfo() variant that takes the file name to read stuff from, and make the non-parameters one calling the new one

svn path=/trunk/KDE/kdegraphics/okular/; revision=884461
This commit is contained in:
Pino Toscano 2008-11-15 00:34:03 +00:00
parent a5252a9115
commit acab77c691
2 changed files with 7 additions and 1 deletions

View File

@ -301,7 +301,12 @@ void DocumentPrivate::loadDocumentInfo()
if ( m_xmlFileName.isEmpty() )
return;
QFile infoFile( m_xmlFileName );
loadDocumentInfo( m_xmlFileName );
}
void DocumentPrivate::loadDocumentInfo( const QString &fileName )
{
QFile infoFile( fileName );
if ( !infoFile.exists() || !infoFile.open( QIODevice::ReadOnly ) )
return;

View File

@ -95,6 +95,7 @@ class DocumentPrivate
qulonglong getTotalMemory();
qulonglong getFreeMemory();
void loadDocumentInfo();
void loadDocumentInfo( const QString &fileName );
void loadViewsInfo( View *view, const QDomElement &e );
void saveViewsInfo( View *view, QDomElement &e ) const;
QString giveAbsolutePath( const QString & fileName ) const;