Commit 290ae2a2 authored by Pino Toscano's avatar Pino Toscano

really new KMainWindow API

svn path=/trunk/playground/graphics/okular/; revision=635975
parent fd73c59b
......@@ -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() )
......
......@@ -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();
......
......@@ -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
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment