add a private slot for hooks on config change

svn path=/trunk/KDE/kdegraphics/okular/; revision=803946
This commit is contained in:
Pino Toscano 2008-05-04 15:02:35 +00:00
parent 51e58cc949
commit e13e74db92
3 changed files with 7 additions and 0 deletions

View file

@ -741,6 +741,10 @@ void DocumentPrivate::refreshPixmaps( int pageNumber )
m_parent->requestPixmaps( requestedPixmaps, Okular::Document::NoOption );
}
void DocumentPrivate::_o_configChanged()
{
}
void DocumentPrivate::doContinueNextMatchSearch(void *pagesToNotifySet, void * theMatch, int currentPage, int searchID, const QString & text, int theCaseSensitivity, bool moveViewport, const QColor & color, bool noDialogs, int donePages)
{
RegularAreaRect * match = static_cast<RegularAreaRect *>(theMatch);
@ -1209,6 +1213,7 @@ Document::Document( QWidget *widget )
connect( PageController::self(), SIGNAL( rotationFinished( int ) ),
this, SLOT( rotationFinished( int ) ) );
connect( Settings::self(), SIGNAL( configChanged() ), this, SLOT( _o_configChanged() ) );
qRegisterMetaType<Okular::FontInfo>();
}

View file

@ -676,6 +676,7 @@ class OKULAR_EXPORT Document : public QObject
Q_PRIVATE_SLOT( d, void fontReadingGotFont( const Okular::FontInfo& font ) )
Q_PRIVATE_SLOT( d, void slotGeneratorConfigChanged( const QString& ) )
Q_PRIVATE_SLOT( d, void refreshPixmaps( int ) )
Q_PRIVATE_SLOT( d, void _o_configChanged() )
// search thread simulators
Q_PRIVATE_SLOT( d, void doContinueNextMatchSearch(void *pagesToNotifySet, void * match, int currentPage, int searchID, const QString & text, int caseSensitivity, bool moveViewport, const QColor & color, bool noDialogs, int donePages) )

View file

@ -111,6 +111,7 @@ class DocumentPrivate
void fontReadingGotFont( const Okular::FontInfo& font );
void slotGeneratorConfigChanged( const QString& );
void refreshPixmaps( int );
void _o_configChanged();
void doContinueNextMatchSearch(void *pagesToNotifySet, void * match, int currentPage, int searchID, const QString & text, int caseSensitivity, bool moveViewport, const QColor & color, bool noDialogs, int donePages);
void doContinuePrevMatchSearch(void *pagesToNotifySet, void * theMatch, int currentPage, int searchID, const QString & text, int theCaseSensitivity, bool moveViewport, const QColor & color, bool noDialogs, int donePages);
void doContinueAllDocumentSearch(void *pagesToNotifySet, void *pageMatchesMap, int currentPage, int searchID, const QString & text, int caseSensitivity, const QColor & color);