Commit 48d52d9b authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark
Browse files

Add missing override declarations

parent d29ec080
......@@ -40,10 +40,10 @@ class DjVuGenerator : public Okular::Generator
QVariant metaData( const QString & key, const QVariant & option ) const Q_DECL_OVERRIDE;
protected:
bool doCloseDocument();
bool doCloseDocument() Q_DECL_OVERRIDE;
// pixmap generation
QImage image( Okular::PixmapRequest *request ) Q_DECL_OVERRIDE;
Okular::TextPage* textPage( Okular::Page *page );
Okular::TextPage* textPage( Okular::Page *page ) Q_DECL_OVERRIDE;
private:
void loadPages( QVector<Okular::Page*> & pagesVector, int rotation );
......
......@@ -24,15 +24,15 @@ class PopplerFormFieldButton : public Okular::FormFieldButton
int id() const Q_DECL_OVERRIDE;
QString name() const Q_DECL_OVERRIDE;
QString uiName() const Q_DECL_OVERRIDE;
virtual bool isReadOnly() const;
virtual bool isVisible() const;
virtual bool isReadOnly() const Q_DECL_OVERRIDE;
virtual bool isVisible() const Q_DECL_OVERRIDE;
// inherited from Okular::FormFieldButton
virtual ButtonType buttonType() const;
virtual QString caption() const;
virtual bool state() const;
virtual void setState( bool state );
virtual QList< int > siblings() const;
virtual ButtonType buttonType() const Q_DECL_OVERRIDE;
virtual QString caption() const Q_DECL_OVERRIDE;
virtual bool state() const Q_DECL_OVERRIDE;
virtual void setState( bool state ) Q_DECL_OVERRIDE;
virtual QList< int > siblings() const Q_DECL_OVERRIDE;
private:
Poppler::FormFieldButton * m_field;
......
......@@ -58,8 +58,8 @@ class PDFGenerator : public Okular::Generator, public Okular::ConfigInterface, p
virtual ~PDFGenerator();
// [INHERITED] load a document and fill up the pagesVector
Okular::Document::OpenResult loadDocumentWithPassword( const QString & fileName, QVector<Okular::Page*> & pagesVector, const QString & password );
Okular::Document::OpenResult loadDocumentFromDataWithPassword( const QByteArray & fileData, QVector<Okular::Page*> & pagesVector, const QString & password );
Okular::Document::OpenResult loadDocumentWithPassword( const QString & fileName, QVector<Okular::Page*> & pagesVector, const QString & password ) Q_DECL_OVERRIDE;
Okular::Document::OpenResult loadDocumentFromDataWithPassword( const QByteArray & fileData, QVector<Okular::Page*> & pagesVector, const QString & password ) Q_DECL_OVERRIDE;
void loadPages(QVector<Okular::Page*> &pagesVector, int rotation=-1, bool clear=false);
// [INHERITED] document information
Okular::DocumentInfo generateDocumentInfo( const QSet<Okular::DocumentInfo::Key> &keys ) const Q_DECL_OVERRIDE;
......
......@@ -137,7 +137,7 @@ class OKULARPART_EXPORT Part : public KParts::ReadWritePart, public Okular::Docu
bool openNewFilesInTabs() const Q_DECL_OVERRIDE;
public Q_SLOTS: // dbus
Q_SCRIPTABLE Q_NOREPLY void goToPage(uint page);
Q_SCRIPTABLE Q_NOREPLY void goToPage(uint page) Q_DECL_OVERRIDE;
Q_SCRIPTABLE Q_NOREPLY void openDocument( const QString &doc );
Q_SCRIPTABLE uint pages();
Q_SCRIPTABLE uint currentPage();
......
......@@ -60,7 +60,7 @@ public:
*/
virtual ~Shell();
QSize sizeHint() const;
QSize sizeHint() const Q_DECL_OVERRIDE;
/**
* Returns false if Okular component wasn't found
......@@ -138,7 +138,7 @@ private:
int findTabIndex( QObject* sender );
private:
bool eventFilter(QObject *obj, QEvent *event) override;
bool eventFilter(QObject *obj, QEvent *event) Q_DECL_OVERRIDE;
KPluginFactory* m_partFactory;
KRecentFilesAction* m_recent;
......
......@@ -148,7 +148,7 @@ public:
void applyChanges() Q_DECL_OVERRIDE;
protected:
virtual QWidget * createStyleWidget();
virtual QWidget * createStyleWidget() Q_DECL_OVERRIDE;
private:
Okular::LineAnnotation * m_lineAnn;
......
......@@ -131,7 +131,7 @@ class MiniBar : public QWidget
private:
void resizeForPage( int pages );
bool eventFilter( QObject *target, QEvent *event );
bool eventFilter( QObject *target, QEvent *event ) Q_DECL_OVERRIDE;
MiniBarLogic * m_miniBarLogic;
PageNumberEdit * m_pageNumberEdit;
......
......@@ -75,19 +75,19 @@ Q_OBJECT
void displayMessage( const QString & message, const QString & details = QString(), PageViewMessage::Icon icon=PageViewMessage::Info, int duration=-1 );
// inherited from DocumentObserver
void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags );
void notifyViewportChanged( bool smoothMove );
void notifyPageChanged( int pageNumber, int changedFlags );
void notifyContentsCleared( int changedFlags );
void notifyZoom(int factor);
bool canUnloadPixmap( int pageNum ) const;
void notifyCurrentPageChanged( int previous, int current );
void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags ) Q_DECL_OVERRIDE;
void notifyViewportChanged( bool smoothMove ) Q_DECL_OVERRIDE;
void notifyPageChanged( int pageNumber, int changedFlags ) Q_DECL_OVERRIDE;
void notifyContentsCleared( int changedFlags ) Q_DECL_OVERRIDE;
void notifyZoom(int factor) Q_DECL_OVERRIDE;
bool canUnloadPixmap( int pageNum ) const Q_DECL_OVERRIDE;
void notifyCurrentPageChanged( int previous, int current ) Q_DECL_OVERRIDE;
// inherited from View
bool supportsCapability( ViewCapability capability ) const;
CapabilityFlags capabilityFlags( ViewCapability capability ) const;
QVariant capability( ViewCapability capability ) const;
void setCapability( ViewCapability capability, const QVariant &option );
bool supportsCapability( ViewCapability capability ) const Q_DECL_OVERRIDE;
CapabilityFlags capabilityFlags( ViewCapability capability ) const Q_DECL_OVERRIDE;
QVariant capability( ViewCapability capability ) const Q_DECL_OVERRIDE;
void setCapability( ViewCapability capability, const QVariant &option ) Q_DECL_OVERRIDE;
QList< Okular::RegularAreaRect * > textSelections( const QPoint& start, const QPoint& end, int& firstpage );
Okular::RegularAreaRect * textSelectionForItem( PageViewItem * item, const QPoint & startPoint = QPoint(), const QPoint & endPoint = QPoint() );
......
......@@ -34,8 +34,8 @@ class TOCModel : public QAbstractItemModel
virtual ~TOCModel();
// reimplementations from QAbstractItemModel
QHash<int, QByteArray> roleNames() const;
int columnCount( const QModelIndex &parent = QModelIndex() ) const;
QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;
int columnCount( const QModelIndex &parent = QModelIndex() ) const Q_DECL_OVERRIDE;
QVariant data( const QModelIndex &index, int role = Qt::DisplayRole ) const Q_DECL_OVERRIDE;
bool hasChildren( const QModelIndex &parent = QModelIndex() ) const Q_DECL_OVERRIDE;
QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const Q_DECL_OVERRIDE;
......
Supports Markdown
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