Commit db9475d3 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Q_DECL_OVERRIDE -> override

parent 3be71095
......@@ -72,23 +72,23 @@ public:
void clear();
Qt::DropActions supportedDropActions() const Q_DECL_OVERRIDE
Qt::DropActions supportedDropActions() const override
{
return Qt::CopyAction | Qt::MoveAction;
}
Qt::ItemFlags flags(const QModelIndex &) const Q_DECL_OVERRIDE;
QMimeData *mimeData(const QModelIndexList &) const Q_DECL_OVERRIDE;
Qt::ItemFlags flags(const QModelIndex &) const override;
QMimeData *mimeData(const QModelIndexList &) const override;
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE
int columnCount(const QModelIndex &parent = QModelIndex()) const 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;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
KFindItem itemAtIndex(const QModelIndex &index) const;
......@@ -113,7 +113,7 @@ public:
}
protected:
bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE;
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override;
};
class KFindTreeView : public QTreeView
......@@ -161,7 +161,7 @@ private Q_SLOTS:
void updateMouseButtons();
protected:
void dragMoveEvent(QDragMoveEvent *e) Q_DECL_OVERRIDE
void dragMoveEvent(QDragMoveEvent *e) override
{
e->accept();
}
......
......@@ -59,7 +59,7 @@ public:
void setURL(const QUrl &url);
QSize sizeHint() const Q_DECL_OVERRIDE;
QSize sizeHint() const override;
public Q_SLOTS:
void setFocus();
......@@ -142,7 +142,7 @@ public:
explicit KDigitValidator(QWidget *parent);
~KDigitValidator();
QValidator::State validate(QString &input, int &) const Q_DECL_OVERRIDE;
QValidator::State validate(QString &input, int &) const override;
private:
QRegExp *r;
......
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