Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit acab77c6 authored by Pino Toscano's avatar Pino Toscano

add a loadDocumentInfo() variant that takes the file name to read stuff from,...

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
parent a5252a91
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment