they are constant methods, so let them be 'const'

svn path=/trunk/playground/graphics/okular/; revision=641248
remotes/origin/KDE/4.0
Pino Toscano 19 years ago
parent 6d16cfd1f6
commit bc8036dc62
  1. 2
      core/document.cpp
  2. 2
      core/document.h
  3. 2
      core/page.cpp
  4. 2
      core/page.h

@ -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 ) if ( d->m_generator )
{ {

@ -261,7 +261,7 @@ class OKULAR_EXPORT Document : public QObject
* Returns the gui description file of the document that shall be merged with * Returns the gui description file of the document that shall be merged with
* Okulars menu/tool bar. * Okulars menu/tool bar.
*/ */
QString xmlFile(); QString xmlFile() const;
/** /**
* Calling this method allows the document to add custom actions to the gui * Calling this method allows the document to add custom actions to the gui

@ -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 // only add a node if there is some stuff to write into
if ( m_annotations.isEmpty() ) if ( m_annotations.isEmpty() )

@ -343,7 +343,7 @@ class OKULAR_EXPORT Page : public QObject
/** /**
* Saves the local contents (e.g. annotations) of the page. * 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: Q_SIGNALS:
void rotationFinished( int page ); void rotationFinished( int page );

Loading…
Cancel
Save