diff --git a/core/document.cpp b/core/document.cpp index 8883ed3ff..e9074d7aa 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -865,7 +865,7 @@ bool Document::openDocument( const QString & docFile, const KUrl& url, const KMi } -QString Document::xmlFile() +QString Document::xmlFile() const { if ( d->m_generator ) { diff --git a/core/document.h b/core/document.h index 85791252d..26fb0bb2b 100644 --- a/core/document.h +++ b/core/document.h @@ -261,7 +261,7 @@ class OKULAR_EXPORT Document : public QObject * Returns the gui description file of the document that shall be merged with * Okulars menu/tool bar. */ - QString xmlFile(); + QString xmlFile() const; /** * Calling this method allows the document to add custom actions to the gui diff --git a/core/page.cpp b/core/page.cpp index 494b1e8e7..5ae607486 100644 --- a/core/page.cpp +++ b/core/page.cpp @@ -699,7 +699,7 @@ void Page::restoreLocalContents( const QDomNode & pageNode ) } } -void Page::saveLocalContents( QDomNode & parentNode, QDomDocument & document ) +void Page::saveLocalContents( QDomNode & parentNode, QDomDocument & document ) const { // only add a node if there is some stuff to write into if ( m_annotations.isEmpty() ) diff --git a/core/page.h b/core/page.h index 59a4b6d45..9ec04e11a 100644 --- a/core/page.h +++ b/core/page.h @@ -343,7 +343,7 @@ class OKULAR_EXPORT Page : public QObject /** * Saves the local contents (e.g. annotations) of the page. */ - void saveLocalContents( QDomNode & parentNode, QDomDocument & document ); + void saveLocalContents( QDomNode & parentNode, QDomDocument & document ) const; Q_SIGNALS: void rotationFinished( int page );