mirror of
https://invent.kde.org/graphics/okular
synced 2024-07-16 10:17:04 +00:00
really new KMainWindow API
svn path=/trunk/playground/graphics/okular/; revision=635975
This commit is contained in:
parent
fd73c59b97
commit
290ae2a264
2
part.cpp
2
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() )
|
||||
|
|
2
part.h
2
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();
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue