From 290ae2a26446dd120ad8e94cb3c5eadb6f167164 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 21 Feb 2007 15:12:57 +0000 Subject: [PATCH] really new KMainWindow API svn path=/trunk/playground/graphics/okular/; revision=635975 --- part.cpp | 2 +- part.h | 2 +- shell/shell.cpp | 4 ++-- shell/shell.h | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/part.cpp b/part.cpp index e67f8486d..e2e228749 100644 --- a/part.cpp +++ b/part.cpp @@ -1408,7 +1408,7 @@ void Part::doPrint(KPrinter &printer) } -void Part::restoreDocument(KConfigGroup &group) +void Part::restoreDocument(const KConfigGroup &group) { KUrl url ( group.readPathEntry( "URL" ) ); if ( url.isValid() ) diff --git a/part.h b/part.h index e7978d3c9..375e00f15 100644 --- a/part.h +++ b/part.h @@ -148,7 +148,7 @@ class Part : public KParts::ReadOnlyPart, public Okular::DocumentObserver, publi public slots: // connected to Shell action (and browserExtension), not local one void slotPrint(); - void restoreDocument(KConfigGroup &group); + void restoreDocument(const KConfigGroup &group); void saveDocumentRestoreInfo(KConfigGroup &group); void slotFileDirty( const QString& ); void slotDoFileDirty(); diff --git a/shell/shell.cpp b/shell/shell.cpp index 637418a7b..030670540 100644 --- a/shell/shell.cpp +++ b/shell/shell.cpp @@ -90,7 +90,7 @@ void Shell::init() m_part = 0; return; } - connect( this, SIGNAL( restoreDocument(KConfigGroup&) ),m_part, SLOT( restoreDocument(KConfigGroup&))); + connect( this, SIGNAL( restoreDocument(const KConfigGroup&) ),m_part, SLOT( restoreDocument(const KConfigGroup&))); connect( this, SIGNAL( saveDocumentRestoreInfo(KConfigGroup&) ), m_part, SLOT( saveDocumentRestoreInfo(KConfigGroup&))); connect( m_part, SIGNAL( enablePrintAction(bool) ), m_printAction, SLOT( setEnabled(bool))); @@ -182,7 +182,7 @@ void Shell::saveProperties(KConfigGroup &group) emit saveDocumentRestoreInfo(group); } -void Shell::readProperties(KConfigGroup &group) +void Shell::readProperties(const KConfigGroup &group) { // the 'config' object points to the session managed // config file. this function is automatically called whenever diff --git a/shell/shell.h b/shell/shell.h index fecd68c56..401b88858 100644 --- a/shell/shell.h +++ b/shell/shell.h @@ -62,7 +62,7 @@ protected: * object points to the session management config file that was saved * with @ref saveProperties */ - void readProperties(KConfigGroup&); + void readProperties(const KConfigGroup&); void readSettings(); void writeSettings(); void setFullScreen( bool ); @@ -79,7 +79,7 @@ private slots: void delayedOpen(); signals: - void restoreDocument(KConfigGroup &group); + void restoreDocument(const KConfigGroup &group); void saveDocumentRestoreInfo(KConfigGroup &group); private: