Commit ee6357d4 authored by Laurent Montel's avatar Laurent Montel 😁

Add const

svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=357310
parent e9e9be99
......@@ -29,7 +29,7 @@ class KPDFDocumentObserver
{
public:
// you must give each observer a unique ID (used for notifications)
virtual uint observerId() = 0;
virtual uint observerId() const = 0;
// monitor changes in pixmaps (generation thread complete)
virtual void notifyPixmapChanged( int /*pageNumber*/ ) {};
......
......@@ -54,7 +54,7 @@ public:
void saveSettings( KConfigGroup * config );
// inherited from KPDFDocumentObserver
uint observerId() { return PAGEVIEW_ID; }
uint observerId() const { return PAGEVIEW_ID; }
void pageSetup( const QValueVector<KPDFPage*> & pages, bool documentChanged );
void pageSetCurrent( int pageNumber, const QRect & viewport );
void notifyPixmapChanged( int pageNumber );
......
......@@ -32,7 +32,7 @@ Q_OBJECT
ThumbnailList(QWidget *parent, KPDFDocument *document);
// create actions that interact with this widget and load/save settings
uint observerId() { return THUMBNAILS_ID; }
uint observerId() const { return THUMBNAILS_ID; }
void setupActions( KActionCollection * /*collection*/, KConfigGroup * /*config*/ ) {};
void saveSettings( KConfigGroup * /*config*/ ) {};
......
......@@ -51,7 +51,7 @@ TOC::TOC(QWidget *parent, KPDFDocument *document) : KListView(parent), m_documen
connect(this, SIGNAL(executed(QListViewItem *)), this, SLOT(slotExecuted(QListViewItem *)));
}
uint TOC::observerId()
uint TOC::observerId() const
{
return TOC_ID;
}
......
......@@ -25,7 +25,7 @@ Q_OBJECT
public:
TOC(QWidget *parent, KPDFDocument *document);
uint observerId();
uint observerId() const ;
void pageSetup( const QValueVector<KPDFPage*> & /*pages*/, bool documentChanged);
signals:
......
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