mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-05 23:49:20 +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() )
|
if ( m_xmlFileName.isEmpty() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
QFile infoFile( m_xmlFileName );
|
loadDocumentInfo( m_xmlFileName );
|
||||||
|
}
|
||||||
|
|
||||||
|
void DocumentPrivate::loadDocumentInfo( const QString &fileName )
|
||||||
|
{
|
||||||
|
QFile infoFile( fileName );
|
||||||
if ( !infoFile.exists() || !infoFile.open( QIODevice::ReadOnly ) )
|
if ( !infoFile.exists() || !infoFile.open( QIODevice::ReadOnly ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -95,6 +95,7 @@ class DocumentPrivate
|
||||||
qulonglong getTotalMemory();
|
qulonglong getTotalMemory();
|
||||||
qulonglong getFreeMemory();
|
qulonglong getFreeMemory();
|
||||||
void loadDocumentInfo();
|
void loadDocumentInfo();
|
||||||
|
void loadDocumentInfo( const QString &fileName );
|
||||||
void loadViewsInfo( View *view, const QDomElement &e );
|
void loadViewsInfo( View *view, const QDomElement &e );
|
||||||
void saveViewsInfo( View *view, QDomElement &e ) const;
|
void saveViewsInfo( View *view, QDomElement &e ) const;
|
||||||
QString giveAbsolutePath( const QString & fileName ) const;
|
QString giveAbsolutePath( const QString & fileName ) const;
|
||||||
|
|
Loading…
Reference in a new issue