Add Q_DECL_OVERRIDE

frameworks
Montel Laurent 11 years ago
parent 26e4f8de60
commit a8c13a9e1d
  1. 14
      ui/annotationmodel.h
  2. 2
      ui/annotationproxymodels.h
  3. 4
      ui/annotationtools.h
  4. 4
      ui/annotwindow.h
  5. 2
      ui/embeddedfilesdialog.h
  6. 4
      ui/fileprinterpreview.h
  7. 8
      ui/magnifierview.h
  8. 4
      ui/pageitemdelegate.h
  9. 2
      ui/pagesizelabel.h
  10. 10
      ui/presentationwidget.h
  11. 8
      ui/propertiesdialog.h
  12. 2
      ui/side_reviews.h
  13. 4
      ui/sidebar.h
  14. 18
      ui/thumbnaillist.h
  15. 4
      ui/toc.h
  16. 14
      ui/tocmodel.h

@ -33,13 +33,13 @@ class AnnotationModel : public QAbstractItemModel
virtual ~AnnotationModel(); virtual ~AnnotationModel();
// reimplementations from QAbstractItemModel // reimplementations from QAbstractItemModel
virtual int columnCount( const QModelIndex &parent = QModelIndex() ) const; int columnCount( const QModelIndex &parent = QModelIndex() ) const Q_DECL_OVERRIDE;
virtual QVariant data( const QModelIndex &index, int role = Qt::DisplayRole ) const; QVariant data( const QModelIndex &index, int role = Qt::DisplayRole ) const Q_DECL_OVERRIDE;
virtual bool hasChildren( const QModelIndex &parent = QModelIndex() ) const; bool hasChildren( const QModelIndex &parent = QModelIndex() ) const Q_DECL_OVERRIDE;
virtual QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const; QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const Q_DECL_OVERRIDE;
virtual QModelIndex index( int row, int column, const QModelIndex &parent = QModelIndex() ) const; QModelIndex index( int row, int column, const QModelIndex &parent = QModelIndex() ) const Q_DECL_OVERRIDE;
virtual QModelIndex parent( const QModelIndex &index ) const; QModelIndex parent( const QModelIndex &index ) const Q_DECL_OVERRIDE;
virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const; int rowCount( const QModelIndex &parent = QModelIndex() ) const Q_DECL_OVERRIDE;
bool isAnnotation( const QModelIndex &index ) const; bool isAnnotation( const QModelIndex &index ) const;
Okular::Annotation* annotationForIndex( const QModelIndex &index ) const; Okular::Annotation* annotationForIndex( const QModelIndex &index ) const;

@ -32,7 +32,7 @@ class PageFilterProxyModel : public QSortFilterProxyModel
/** /**
* Reimplemented from QSortFilterProxy. * Reimplemented from QSortFilterProxy.
*/ */
virtual bool filterAcceptsRow( int, const QModelIndex& ) const; bool filterAcceptsRow( int, const QModelIndex& ) const Q_DECL_OVERRIDE;
public Q_SLOTS: public Q_SLOTS:
/** /**

@ -87,9 +87,9 @@ class SmoothPathEngine
public: public:
SmoothPathEngine( const QDomElement & engineElement ); SmoothPathEngine( const QDomElement & engineElement );
QRect event( EventType type, Button button, double nX, double nY, double xScale, double yScale, const Okular::Page * /*page*/ ); QRect event( EventType type, Button button, double nX, double nY, double xScale, double yScale, const Okular::Page * /*page*/ ) Q_DECL_OVERRIDE;
void paint( QPainter * painter, double xScale, double yScale, const QRect & /*clipRect*/ ); void paint( QPainter * painter, double xScale, double yScale, const QRect & /*clipRect*/ ) Q_DECL_OVERRIDE;
// These are two alternative ways to get the resulting path. Don't call them both! // These are two alternative ways to get the resulting path. Don't call them both!
QList< Okular::Annotation* > end(); QList< Okular::Annotation* > end();

@ -48,8 +48,8 @@ class AnnotWindow : public QFrame
int m_prevAnchorPos; int m_prevAnchorPos;
protected: protected:
virtual void showEvent( QShowEvent * event ); void showEvent( QShowEvent * event ) Q_DECL_OVERRIDE;
virtual bool eventFilter( QObject * obj, QEvent * event ); bool eventFilter( QObject * obj, QEvent * event ) Q_DECL_OVERRIDE;
private slots: private slots:
void slotUpdateUndoAndRedoInContextMenu(QMenu *menu); void slotUpdateUndoAndRedoInContextMenu(QMenu *menu);

@ -34,7 +34,7 @@ Q_OBJECT
void saveFile( Okular::EmbeddedFile* ); void saveFile( Okular::EmbeddedFile* );
QTreeWidget *m_tw; QTreeWidget *m_tw;
QPushButton *mUser1Button; QPushButton *mUser1Button;
}; };
#endif #endif

@ -35,10 +35,10 @@ public:
explicit FilePrinterPreview( const QString &filename, QWidget *parent = 0 ); explicit FilePrinterPreview( const QString &filename, QWidget *parent = 0 );
virtual ~FilePrinterPreview(); virtual ~FilePrinterPreview();
QSize sizeHint() const; QSize sizeHint() const Q_DECL_OVERRIDE;
protected: protected:
void showEvent( QShowEvent *event ); void showEvent( QShowEvent *event ) Q_DECL_OVERRIDE;
private: private:
FilePrinterPreviewPrivate * const d; FilePrinterPreviewPrivate * const d;

@ -32,10 +32,10 @@ class MagnifierView : public QWidget, public Okular::DocumentObserver
MagnifierView( Okular::Document *document, QWidget *parent = 0 ); MagnifierView( Okular::Document *document, QWidget *parent = 0 );
~MagnifierView(); ~MagnifierView();
void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags ); void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags ) Q_DECL_OVERRIDE;
void notifyPageChanged( int page, int flags ); void notifyPageChanged( int page, int flags ) Q_DECL_OVERRIDE;
void notifyCurrentPageChanged( int previous, int current ); void notifyCurrentPageChanged( int previous, int current ) Q_DECL_OVERRIDE;
bool canUnloadPixmap( int page ) const; bool canUnloadPixmap( int page ) const Q_DECL_OVERRIDE;
void updateView( const Okular::NormalizedPoint &p, const Okular::Page * page ); void updateView( const Okular::NormalizedPoint &p, const Okular::Page * page );
void move( int x, int y ); void move( int x, int y );

@ -23,10 +23,10 @@ class PageItemDelegate : public QItemDelegate
static const int PageRole = 0x000f0001; static const int PageRole = 0x000f0001;
static const int PageLabelRole = 0x000f0002; static const int PageLabelRole = 0x000f0002;
virtual void paint( QPainter *painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const; void paint( QPainter *painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const Q_DECL_OVERRIDE;
protected: protected:
virtual void drawDisplay( QPainter *painter, const QStyleOptionViewItem & option, const QRect & rect, const QString & text ) const; void drawDisplay( QPainter *painter, const QStyleOptionViewItem & option, const QRect & rect, const QString & text ) const Q_DECL_OVERRIDE;
private: private:
class Private; class Private;

@ -30,7 +30,7 @@ class PageSizeLabel : public KSqueezedTextLabel, public Okular::DocumentObserver
~PageSizeLabel(); ~PageSizeLabel();
// [INHERITED] from DocumentObserver // [INHERITED] from DocumentObserver
void notifyCurrentPageChanged( int previous, int current ); void notifyCurrentPageChanged( int previous, int current ) Q_DECL_OVERRIDE;
private: private:
Okular::Document * m_document; Okular::Document * m_document;

@ -49,11 +49,11 @@ class PresentationWidget : public QWidget, public Okular::DocumentObserver
~PresentationWidget(); ~PresentationWidget();
// inherited from DocumentObserver // inherited from DocumentObserver
void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags ); void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags ) Q_DECL_OVERRIDE;
void notifyViewportChanged( bool smoothMove ); void notifyViewportChanged( bool smoothMove ) Q_DECL_OVERRIDE;
void notifyPageChanged( int pageNumber, int changedFlags ); void notifyPageChanged( int pageNumber, int changedFlags ) Q_DECL_OVERRIDE;
bool canUnloadPixmap( int pageNumber ) const; bool canUnloadPixmap( int pageNumber ) const Q_DECL_OVERRIDE;
void notifyCurrentPageChanged( int previous, int current ); void notifyCurrentPageChanged( int previous, int current ) Q_DECL_OVERRIDE;
public slots: public slots:
void slotFind(); void slotFind();

@ -60,10 +60,10 @@ class FontsListModel
virtual ~FontsListModel(); virtual ~FontsListModel();
// reimplementations from QAbstractTableModel // reimplementations from QAbstractTableModel
virtual int columnCount( const QModelIndex &parent = QModelIndex() ) const; int columnCount( const QModelIndex &parent = QModelIndex() ) const Q_DECL_OVERRIDE;
virtual QVariant data( const QModelIndex &index, int role = Qt::DisplayRole ) const; QVariant data( const QModelIndex &index, int role = Qt::DisplayRole ) const Q_DECL_OVERRIDE;
virtual QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const; QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const Q_DECL_OVERRIDE;
virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const; int rowCount( const QModelIndex &parent = QModelIndex() ) const Q_DECL_OVERRIDE;
public slots: public slots:
void addFont( const Okular::FontInfo &fi ); void addFont( const Okular::FontInfo &fi );

@ -41,7 +41,7 @@ class Reviews : public QWidget, public Okular::DocumentObserver
~Reviews(); ~Reviews();
// [INHERITED] from DocumentObserver // [INHERITED] from DocumentObserver
void notifyCurrentPageChanged( int previous, int current ); void notifyCurrentPageChanged( int previous, int current ) Q_DECL_OVERRIDE;
void reparseConfig(); void reparseConfig();

@ -47,8 +47,8 @@ class Sidebar : public QWidget
void urlsDropped( const QList<QUrl>& urls ); void urlsDropped( const QList<QUrl>& urls );
protected: protected:
void dragEnterEvent( QDragEnterEvent* event ); void dragEnterEvent( QDragEnterEvent* event ) Q_DECL_OVERRIDE;
void dropEvent( QDropEvent* event ); void dropEvent( QDropEvent* event ) Q_DECL_OVERRIDE;
private slots: private slots:
void itemClicked( QListWidgetItem *item ); void itemClicked( QListWidgetItem *item );

@ -35,17 +35,17 @@ Q_OBJECT
~ThumbnailList(); ~ThumbnailList();
// inherited: create thumbnails ( inherited as a DocumentObserver ) // inherited: create thumbnails ( inherited as a DocumentObserver )
void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags ); void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags ) Q_DECL_OVERRIDE;
// inherited: hilihght current thumbnail ( inherited as DocumentObserver ) // inherited: hilihght current thumbnail ( inherited as DocumentObserver )
void notifyCurrentPageChanged( int previous, int current ); void notifyCurrentPageChanged( int previous, int current ) Q_DECL_OVERRIDE;
// inherited: redraw thumbnail ( inherited as DocumentObserver ) // inherited: redraw thumbnail ( inherited as DocumentObserver )
void notifyPageChanged( int pageNumber, int changedFlags ); void notifyPageChanged( int pageNumber, int changedFlags ) Q_DECL_OVERRIDE;
// inherited: request all visible pixmap (due to a global shange or so..) // inherited: request all visible pixmap (due to a global shange or so..)
void notifyContentsCleared( int changedFlags ); void notifyContentsCleared( int changedFlags ) Q_DECL_OVERRIDE;
// inherited: the visible areas of the page have changed // inherited: the visible areas of the page have changed
void notifyVisibleRectsChanged(); void notifyVisibleRectsChanged() Q_DECL_OVERRIDE;
// inherited: tell if pixmap is hidden and can be unloaded // inherited: tell if pixmap is hidden and can be unloaded
bool canUnloadPixmap( int pageNumber ) const; bool canUnloadPixmap( int pageNumber ) const Q_DECL_OVERRIDE;
// redraw visible widgets (useful for refreshing contents...) // redraw visible widgets (useful for refreshing contents...)
void updateWidgets(); void updateWidgets();
@ -56,10 +56,10 @@ Q_OBJECT
protected: protected:
// scroll up/down the view // scroll up/down the view
void keyPressEvent( QKeyEvent * e ); void keyPressEvent( QKeyEvent * e ) Q_DECL_OVERRIDE;
// catch the viewport event and filter them if necessary // catch the viewport event and filter them if necessary
bool viewportEvent( QEvent * ); bool viewportEvent( QEvent * ) Q_DECL_OVERRIDE;
signals: signals:
void rightClick( const Okular::Page *, const QPoint & ); void rightClick( const Okular::Page *, const QPoint & );
@ -79,7 +79,7 @@ class ThumbnailsBox : public QWidget
{ {
public: public:
ThumbnailsBox( QWidget * parent ) : QWidget( parent ) { QVBoxLayout *vbox = new QVBoxLayout(this); vbox->setMargin(0); vbox->setSpacing(0);} ThumbnailsBox( QWidget * parent ) : QWidget( parent ) { QVBoxLayout *vbox = new QVBoxLayout(this); vbox->setMargin(0); vbox->setSpacing(0);}
QSize sizeHint() const { return QSize(); } QSize sizeHint() const Q_DECL_OVERRIDE { return QSize(); }
}; };
/** /**

@ -37,8 +37,8 @@ Q_OBJECT
~TOC(); ~TOC();
// inherited from DocumentObserver // inherited from DocumentObserver
void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags ); void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags ) Q_DECL_OVERRIDE;
void notifyCurrentPageChanged( int previous, int current ); void notifyCurrentPageChanged( int previous, int current ) Q_DECL_OVERRIDE;
void reparseConfig(); void reparseConfig();

@ -30,13 +30,13 @@ class TOCModel : public QAbstractItemModel
virtual ~TOCModel(); virtual ~TOCModel();
// reimplementations from QAbstractItemModel // reimplementations from QAbstractItemModel
virtual int columnCount( const QModelIndex &parent = QModelIndex() ) const; int columnCount( const QModelIndex &parent = QModelIndex() ) const;
virtual QVariant data( const QModelIndex &index, int role = Qt::DisplayRole ) const; QVariant data( const QModelIndex &index, int role = Qt::DisplayRole ) const Q_DECL_OVERRIDE;
virtual bool hasChildren( const QModelIndex &parent = QModelIndex() ) const; bool hasChildren( const QModelIndex &parent = QModelIndex() ) const Q_DECL_OVERRIDE;
virtual QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const; QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const Q_DECL_OVERRIDE;
virtual QModelIndex index( int row, int column, const QModelIndex &parent = QModelIndex() ) const; QModelIndex index( int row, int column, const QModelIndex &parent = QModelIndex() ) const Q_DECL_OVERRIDE;
virtual QModelIndex parent( const QModelIndex &index ) const; QModelIndex parent( const QModelIndex &index ) const Q_DECL_OVERRIDE;
virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const; int rowCount( const QModelIndex &parent = QModelIndex() ) const Q_DECL_OVERRIDE;
void fill( const Okular::DocumentSynopsis *toc ); void fill( const Okular::DocumentSynopsis *toc );
void clear(); void clear();

Loading…
Cancel
Save