mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-24 18:35:37 +00:00
Add Q_DECL_OVERRIDE
This commit is contained in:
parent
70159dc61f
commit
13ad9aa53b
|
@ -41,7 +41,7 @@ class MagnifierView : public QWidget, public Okular::DocumentObserver
|
|||
void move( int x, int y );
|
||||
|
||||
protected:
|
||||
void paintEvent( QPaintEvent *e );
|
||||
void paintEvent( QPaintEvent *e ) Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
Okular::NormalizedRect normalizedView() const;
|
||||
|
|
|
@ -165,10 +165,10 @@ class ProgressWidget : public QWidget, public Okular::DocumentObserver
|
|||
protected:
|
||||
void setProgress( float percentage );
|
||||
|
||||
void mouseMoveEvent( QMouseEvent * e );
|
||||
void mousePressEvent( QMouseEvent * e );
|
||||
void wheelEvent( QWheelEvent * e );
|
||||
void paintEvent( QPaintEvent * e );
|
||||
void mouseMoveEvent( QMouseEvent * e ) Q_DECL_OVERRIDE;
|
||||
void mousePressEvent( QMouseEvent * e ) Q_DECL_OVERRIDE;
|
||||
void wheelEvent( QWheelEvent * e ) Q_DECL_OVERRIDE;
|
||||
void paintEvent( QPaintEvent * e ) Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
Okular::Document * m_document;
|
||||
|
|
|
@ -125,24 +125,24 @@ Q_OBJECT
|
|||
void fitWindowToPage( const QSize& pageViewPortSize, const QSize& pageSize );
|
||||
|
||||
protected:
|
||||
void resizeEvent( QResizeEvent* );
|
||||
void resizeEvent( QResizeEvent* ) Q_DECL_OVERRIDE;
|
||||
|
||||
// mouse / keyboard events
|
||||
void keyPressEvent( QKeyEvent* );
|
||||
void keyReleaseEvent( QKeyEvent* );
|
||||
void inputMethodEvent( QInputMethodEvent * );
|
||||
void wheelEvent( QWheelEvent* );
|
||||
void keyPressEvent( QKeyEvent* ) Q_DECL_OVERRIDE;
|
||||
void keyReleaseEvent( QKeyEvent* ) Q_DECL_OVERRIDE;
|
||||
void inputMethodEvent( QInputMethodEvent * ) Q_DECL_OVERRIDE;
|
||||
void wheelEvent( QWheelEvent* ) Q_DECL_OVERRIDE;
|
||||
|
||||
void paintEvent( QPaintEvent *e );
|
||||
void tabletEvent (QTabletEvent *e );
|
||||
void mouseMoveEvent( QMouseEvent *e );
|
||||
void mousePressEvent( QMouseEvent *e );
|
||||
void mouseReleaseEvent( QMouseEvent *e );
|
||||
void mouseDoubleClickEvent( QMouseEvent *e );
|
||||
void paintEvent( QPaintEvent *e ) Q_DECL_OVERRIDE;
|
||||
void tabletEvent (QTabletEvent *e ) Q_DECL_OVERRIDE;
|
||||
void mouseMoveEvent( QMouseEvent *e ) Q_DECL_OVERRIDE;
|
||||
void mousePressEvent( QMouseEvent *e ) Q_DECL_OVERRIDE;
|
||||
void mouseReleaseEvent( QMouseEvent *e ) Q_DECL_OVERRIDE;
|
||||
void mouseDoubleClickEvent( QMouseEvent *e ) Q_DECL_OVERRIDE;
|
||||
|
||||
bool viewportEvent( QEvent *e );
|
||||
bool viewportEvent( QEvent *e ) Q_DECL_OVERRIDE;
|
||||
|
||||
void scrollContentsBy( int dx, int dy );
|
||||
void scrollContentsBy( int dx, int dy ) Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
// draw background and items on the opened qpainter
|
||||
|
|
|
@ -107,9 +107,9 @@ class PageViewMessage : public QWidget
|
|||
void display( const QString & message, const QString & details = QString(), Icon icon = Info, int durationMs = 4000 );
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject * obj, QEvent * event );
|
||||
void paintEvent( QPaintEvent * e );
|
||||
void mousePressEvent( QMouseEvent * e );
|
||||
bool eventFilter(QObject * obj, QEvent * event ) Q_DECL_OVERRIDE;
|
||||
void paintEvent( QPaintEvent * e ) Q_DECL_OVERRIDE;
|
||||
void mousePressEvent( QMouseEvent * e ) Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
QRect computeTextRect( const QString & message, int extra_width ) const;
|
||||
|
@ -198,11 +198,11 @@ class PageViewToolBar : public QWidget
|
|||
|
||||
protected:
|
||||
// handle widget events { anchor_resize, paint, animation, drag }
|
||||
bool eventFilter( QObject * o, QEvent * e );
|
||||
void paintEvent( QPaintEvent * );
|
||||
void mousePressEvent( QMouseEvent * e );
|
||||
void mouseMoveEvent( QMouseEvent * e );
|
||||
void mouseReleaseEvent( QMouseEvent * e );
|
||||
bool eventFilter( QObject * o, QEvent * e ) Q_DECL_OVERRIDE;
|
||||
void paintEvent( QPaintEvent * ) Q_DECL_OVERRIDE;
|
||||
void mousePressEvent( QMouseEvent * e ) Q_DECL_OVERRIDE;
|
||||
void mouseMoveEvent( QMouseEvent * e ) Q_DECL_OVERRIDE;
|
||||
void mouseReleaseEvent( QMouseEvent * e ) Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
// private variables
|
||||
|
|
|
@ -31,8 +31,8 @@ class PresentationSearchBar
|
|||
void focusOnSearchEdit();
|
||||
|
||||
protected:
|
||||
void resizeEvent( QResizeEvent * );
|
||||
bool eventFilter( QObject *, QEvent * );
|
||||
void resizeEvent( QResizeEvent * ) Q_DECL_OVERRIDE;
|
||||
bool eventFilter( QObject *, QEvent * ) Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
QWidget *m_handle;
|
||||
|
|
|
@ -60,15 +60,15 @@ class PresentationWidget : public QWidget, public Okular::DocumentObserver
|
|||
|
||||
protected:
|
||||
// widget events
|
||||
bool event( QEvent * e );
|
||||
void keyPressEvent( QKeyEvent * e );
|
||||
void wheelEvent( QWheelEvent * e );
|
||||
void mousePressEvent( QMouseEvent * e );
|
||||
void mouseReleaseEvent( QMouseEvent * e );
|
||||
void mouseMoveEvent( QMouseEvent * e );
|
||||
void paintEvent( QPaintEvent * e );
|
||||
void resizeEvent( QResizeEvent * e );
|
||||
void leaveEvent( QEvent * e );
|
||||
bool event( QEvent * e ) Q_DECL_OVERRIDE;
|
||||
void keyPressEvent( QKeyEvent * e ) Q_DECL_OVERRIDE;
|
||||
void wheelEvent( QWheelEvent * e ) Q_DECL_OVERRIDE;
|
||||
void mousePressEvent( QMouseEvent * e ) Q_DECL_OVERRIDE;
|
||||
void mouseReleaseEvent( QMouseEvent * e ) Q_DECL_OVERRIDE;
|
||||
void mouseMoveEvent( QMouseEvent * e ) Q_DECL_OVERRIDE;
|
||||
void paintEvent( QPaintEvent * e ) Q_DECL_OVERRIDE;
|
||||
void resizeEvent( QResizeEvent * e ) Q_DECL_OVERRIDE;
|
||||
void leaveEvent( QEvent * e ) Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
const void * getObjectRect( Okular::ObjectRect::ObjectType type, int x, int y, QRect * geometry = 0 ) const;
|
||||
|
|
|
@ -52,9 +52,9 @@ class VideoWidget : public QWidget
|
|||
void stop();
|
||||
|
||||
protected:
|
||||
/* reimp */ bool eventFilter( QObject * object, QEvent * event );
|
||||
/* reimp */ bool event( QEvent * event );
|
||||
/* reimp */ void resizeEvent( QResizeEvent * event );
|
||||
bool eventFilter( QObject * object, QEvent * event ) Q_DECL_OVERRIDE;
|
||||
bool event( QEvent * event ) Q_DECL_OVERRIDE;
|
||||
void resizeEvent( QResizeEvent * event ) Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
Q_PRIVATE_SLOT( d, void finished() )
|
||||
|
|
Loading…
Reference in a new issue