mirror of
https://invent.kde.org/graphics/okular
synced 2024-07-07 19:29:21 +00:00
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:
parent
a5252a9115
commit
acab77c691
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user