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

Add Q_DECL_OVERRIDE

parent 56a5e03f
......@@ -68,16 +68,16 @@ public:
int minimumTextHeight() const;
/** @see QWidget::sizeHint */
virtual QSize sizeHint() const;
QSize sizeHint() const Q_DECL_OVERRIDE;
/** @see QWidget::minimumSizeHint */
virtual QSize minimumSizeHint() const;
QSize minimumSizeHint() const Q_DECL_OVERRIDE;
protected:
/** @see QWidget::paintEvent() */
virtual void paintEvent(QPaintEvent *event);
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
/** @see QWidget::resizeEvent() */
virtual void resizeEvent(QResizeEvent *event);
void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
private Q_SLOTS:
void timerDone();
......
......@@ -66,11 +66,11 @@ public:
void insertItem(const QPixmap &pixmap, const QString &text, int index = -1, const QString &title = QString());
protected:
virtual void keyPressEvent(QKeyEvent *);
virtual bool eventFilter(QObject *, QEvent *);
virtual void mousePressEvent(QMouseEvent *);
virtual void mouseMoveEvent(QMouseEvent *);
void paintEvent(QPaintEvent *);
void keyPressEvent(QKeyEvent *) Q_DECL_OVERRIDE;
bool eventFilter(QObject *, QEvent *) Q_DECL_OVERRIDE;
void mousePressEvent(QMouseEvent *) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent *) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent *) Q_DECL_OVERRIDE;
void selectWord(QKeyEvent *e);
Q_SIGNALS:
......
......@@ -30,11 +30,11 @@ public:
KonqDraggableLabel(KonqMainWindow *mw, const QString &text);
protected:
void mousePressEvent(QMouseEvent *ev);
void mouseMoveEvent(QMouseEvent *ev);
void mouseReleaseEvent(QMouseEvent *);
void dragEnterEvent(QDragEnterEvent *ev);
void dropEvent(QDropEvent *ev);
void mousePressEvent(QMouseEvent *ev) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent *ev) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent *) Q_DECL_OVERRIDE;
void dragEnterEvent(QDragEnterEvent *ev) Q_DECL_OVERRIDE;
void dropEvent(QDropEvent *ev) Q_DECL_OVERRIDE;
private Q_SLOTS:
void delayedOpenURL();
......
......@@ -84,8 +84,8 @@ Q_SIGNALS:
void linkedViewClicked(bool mode);
protected:
virtual bool eventFilter(QObject *, QEvent *);
virtual void mousePressEvent(QMouseEvent *);
bool eventFilter(QObject *, QEvent *) Q_DECL_OVERRIDE;
void mousePressEvent(QMouseEvent *) Q_DECL_OVERRIDE;
/**
* Brings up the context menu for this frame
*/
......
......@@ -35,7 +35,7 @@ public:
KonqHistoryDialog(KonqMainWindow *parent = Q_NULLPTR);
~KonqHistoryDialog();
QSize sizeHint() const;
QSize sizeHint() const Q_DECL_OVERRIDE;
private Q_SLOTS:
void slotOpenWindow(const QUrl &url);
......
......@@ -41,11 +41,11 @@ public:
~KonqHistoryModel();
// reimplementations from QAbstractItemModel
virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
virtual QModelIndex parent(const QModelIndex &index) const;
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
QModelIndex parent(const QModelIndex &index) const Q_DECL_OVERRIDE;
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
void deleteItem(const QModelIndex &index);
......
......@@ -39,10 +39,10 @@ public:
explicit KonqHistoryProxyModel(KonqHistorySettings *settings, QObject *parent = Q_NULLPTR);
~KonqHistoryProxyModel();
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
protected:
virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE;
private Q_SLOTS:
void slotSettingsChanged();
......
......@@ -148,8 +148,8 @@ public:
virtual void removeContainer(QWidget *container, QWidget *parent, QDomElement &element, QAction *containerAction);
/// KMainWindow methods, for session management
virtual void saveProperties(KConfigGroup &config);
virtual void readProperties(const KConfigGroup &config);
void saveProperties(KConfigGroup &config) Q_DECL_OVERRIDE;
void readProperties(const KConfigGroup &config) Q_DECL_OVERRIDE;
void setInitialFrameName(const QString &name);
......
......@@ -53,7 +53,7 @@ public:
protected:
/*! \reimp */
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const Q_DECL_OVERRIDE;
KSortFilterProxyModelPrivate *const d_ptr;
Q_DISABLE_COPY(KSortFilterProxyModel)
......
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