Commit 0adccf18 authored by Laurent Montel's avatar Laurent Montel 😁

We use Q_DECL_OVERRIDE or override.

Summary: => use unique keyword override

Test Plan: compile

Reviewers: hein

Reviewed By: hein

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D8549
parent 9a5e9be0
......@@ -68,7 +68,7 @@ class DirLister : public KDirLister
void error(const QString &string);
protected:
void handleError(KIO::Job *job) Q_DECL_OVERRIDE;
void handleError(KIO::Job *job) override;
};
class FOLDERPLUGIN_TESTS_EXPORT FolderModel : public QSortFilterProxyModel
......
......@@ -28,7 +28,7 @@ class FolderPlugin : public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
void registerTypes(const char *uri) Q_DECL_OVERRIDE;
void registerTypes(const char *uri) override;
};
#endif // FOLDERPLUGIN_H
......@@ -36,12 +36,12 @@ class ItemViewAdapter : public KAbstractViewAdapter
public:
explicit ItemViewAdapter(QObject* parent = nullptr);
QAbstractItemModel *model() const Q_DECL_OVERRIDE;
QSize iconSize() const Q_DECL_OVERRIDE;
QPalette palette() const Q_DECL_OVERRIDE;
QRect visibleArea() const Q_DECL_OVERRIDE;
QRect visualRect(const QModelIndex &index) const Q_DECL_OVERRIDE;
void connect(Signal signal, QObject *receiver, const char *slot) Q_DECL_OVERRIDE;
QAbstractItemModel *model() const override;
QSize iconSize() const override;
QPalette palette() const override;
QRect visibleArea() const override;
QRect visualRect(const QModelIndex &index) const override;
void connect(Signal signal, QObject *receiver, const char *slot) override;
QObject *adapterView() const;
void setAdapterView(QObject *view);
......
......@@ -66,10 +66,10 @@ class FOLDERPLUGIN_TESTS_EXPORT Positioner : public QAbstractItemModel
Q_INVOKABLE void move(const QVariantList &moves);
QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;
QHash<int, QByteArray> roleNames() const override;
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
QModelIndex parent(const QModelIndex &index) const Q_DECL_OVERRIDE;
QModelIndex parent(const QModelIndex &index) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
......
......@@ -40,7 +40,7 @@ class WheelInterceptor : public QQuickItem
void destinationChanged() const;
protected:
void wheelEvent(QWheelEvent *event) Q_DECL_OVERRIDE;
void wheelEvent(QWheelEvent *event) override;
private:
QPointer<QObject> m_destination;
......
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