Commit 8cb82291 authored by David Faure's avatar David Faure
Browse files

Add Q_DECL_OVERRIDE where appropriate (thanks to gcc's -Wsuggest-override)

parent 8a4a4a16
......@@ -52,8 +52,8 @@ private:
QDate & string2Date(const QString &, QDate * );
protected:
bool eventFilter (QObject*, QEvent*);
virtual void mousePressEvent (QMouseEvent * e);
bool eventFilter (QObject*, QEvent*) Q_DECL_OVERRIDE;
void mousePressEvent (QMouseEvent * e) Q_DECL_OVERRIDE;
protected Q_SLOTS:
void dateEnteredEvent(const QDate &d=QDate());
......
......@@ -66,15 +66,15 @@ class KFindItemModel: public QAbstractTableModel
void clear();
Qt::DropActions supportedDropActions() const { return Qt::CopyAction | Qt::MoveAction; }
Qt::DropActions supportedDropActions() const Q_DECL_OVERRIDE { return Qt::CopyAction | Qt::MoveAction; }
Qt::ItemFlags flags(const QModelIndex &) const;
QMimeData * mimeData(const QModelIndexList &) const;
Qt::ItemFlags flags(const QModelIndex &) const Q_DECL_OVERRIDE;
QMimeData * mimeData(const QModelIndexList &) const Q_DECL_OVERRIDE;
int columnCount ( const QModelIndex & parent = QModelIndex() ) const { Q_UNUSED(parent); return 6; }
int rowCount ( const QModelIndex & parent = QModelIndex() ) const;
QVariant data ( const QModelIndex & index, int role = Qt::DisplayRole ) const;
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
int columnCount ( const QModelIndex & parent = QModelIndex() ) const Q_DECL_OVERRIDE { Q_UNUSED(parent); return 6; }
int rowCount ( const QModelIndex & parent = QModelIndex() ) const Q_DECL_OVERRIDE;
QVariant data ( const QModelIndex & index, int role = Qt::DisplayRole ) const Q_DECL_OVERRIDE;
QVariant headerData(int section, Qt::Orientation orientation, int role) const Q_DECL_OVERRIDE;
KFindItem itemAtIndex( const QModelIndex & index ) const;
......@@ -94,7 +94,7 @@ class KFindSortFilterProxyModel: public QSortFilterProxyModel
QSortFilterProxyModel(parent){}
protected:
bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE;
};
......@@ -136,7 +136,7 @@ class KFindTreeView: public QTreeView
void updateMouseButtons();
protected:
void dragMoveEvent( QDragMoveEvent *e ) { e->accept(); }
void dragMoveEvent( QDragMoveEvent *e ) Q_DECL_OVERRIDE { e->accept(); }
Q_SIGNALS:
void resultSelected(bool);
......
......@@ -62,7 +62,7 @@ public:
void setURL( const QUrl & url );
virtual QSize sizeHint() const;
QSize sizeHint() const Q_DECL_OVERRIDE;
public Q_SLOTS:
void setFocus();
......@@ -147,7 +147,7 @@ public:
KDigitValidator(QWidget * parent);
~KDigitValidator();
QValidator::State validate(QString & input, int &) const;
QValidator::State validate(QString & input, int &) const Q_DECL_OVERRIDE;
private:
QRegExp *r;
......
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