Commit 21eb03b4 authored by Laurent Montel's avatar Laurent Montel 😁 Committed by Kai Uwe Broulik
Browse files

Use override keyword

parent 1ae77bf9
......@@ -32,7 +32,7 @@ class PumpJob : public KIO::Job
public:
PumpJob(int interval = 0);
virtual ~PumpJob();
~PumpJob() override;
void start() override;
bool doKill() override;
......
......@@ -35,7 +35,7 @@ class StatusNotifierTest : public QDialog, public Ui_StatusNotifierTest
public:
StatusNotifierTest(QWidget* parent = 0);
virtual ~StatusNotifierTest();
~StatusNotifierTest() override;
void init();
void log(const QString &msg);
......
......@@ -30,7 +30,7 @@ class Gpsd : public QThread
Q_OBJECT
public:
Gpsd(gps_data_t* gpsdata);
virtual ~Gpsd();
~Gpsd() override;
void update();
......
......@@ -46,7 +46,7 @@ class RssEngine : public Plasma::DataEngine
public:
RssEngine(QObject* parent, const QVariantList& args);
virtual ~RssEngine();
~RssEngine() override;
protected:
bool sourceRequestEvent(const QString &name);
......
......@@ -95,7 +95,7 @@ public:
Q_ENUM(AdditionalRoles)
explicit AbstractTasksModel(QObject *parent = nullptr);
virtual ~AbstractTasksModel();
~AbstractTasksModel() override;
QHash<int, QByteArray> roleNames() const override;
......
......@@ -45,7 +45,7 @@ class TASKMANAGER_EXPORT AbstractWindowTasksModel : public AbstractTasksModel
public:
explicit AbstractWindowTasksModel(QObject *parent = nullptr);
virtual ~AbstractWindowTasksModel();
~AbstractWindowTasksModel() override;
};
}
......
......@@ -51,7 +51,7 @@ class TASKMANAGER_EXPORT ActivityInfo : public QObject
public:
explicit ActivityInfo(QObject *parent = nullptr);
virtual ~ActivityInfo();
~ActivityInfo() override;
/**
* The currently active virtual desktop.
......
......@@ -46,7 +46,7 @@ class TASKMANAGER_EXPORT ConcatenateTasksProxyModel : public KConcatenateRowsPro
public:
explicit ConcatenateTasksProxyModel(QObject *parent = nullptr);
virtual ~ConcatenateTasksProxyModel();
~ConcatenateTasksProxyModel() override;
protected:
QModelIndex mapIfaceToSource(const QModelIndex &index) const override;
};
......
......@@ -47,7 +47,7 @@ class TASKMANAGER_EXPORT FlattenTaskGroupsProxyModel : public KDescendantsProxyM
public:
explicit FlattenTaskGroupsProxyModel(QObject *parent = nullptr);
virtual ~FlattenTaskGroupsProxyModel();
~FlattenTaskGroupsProxyModel() override;
void setSourceModel(QAbstractItemModel *sourceModel) override;
......
......@@ -56,7 +56,7 @@ class TASKMANAGER_EXPORT LauncherTasksModel : public AbstractTasksModel
public:
explicit LauncherTasksModel(QObject *parent = nullptr);
virtual ~LauncherTasksModel();
~LauncherTasksModel() override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
......
......@@ -47,7 +47,7 @@ class TASKMANAGER_EXPORT StartupTasksModel : public AbstractTasksModel
public:
explicit StartupTasksModel(QObject *parent = nullptr);
virtual ~StartupTasksModel();
~StartupTasksModel() override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
......
......@@ -60,7 +60,7 @@ class TASKMANAGER_EXPORT TaskFilterProxyModel : public QSortFilterProxyModel, pu
public:
explicit TaskFilterProxyModel(QObject *parent = nullptr);
virtual ~TaskFilterProxyModel();
~TaskFilterProxyModel() override;
void setSourceModel(QAbstractItemModel *sourceModel) override;
......
......@@ -55,7 +55,7 @@ class TASKMANAGER_EXPORT TaskGroupingProxyModel : public QAbstractProxyModel, pu
public:
explicit TaskGroupingProxyModel(QObject *parent = nullptr);
virtual ~TaskGroupingProxyModel();
~TaskGroupingProxyModel() override;
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
QModelIndex parent(const QModelIndex &child) const override;
......
......@@ -106,7 +106,7 @@ public:
Q_ENUM(GroupMode)
explicit TasksModel(QObject *parent = nullptr);
virtual ~TasksModel();
~TasksModel() override;
QHash<int, QByteArray> roleNames() const override;
......
......@@ -56,7 +56,7 @@ class TASKMANAGER_EXPORT VirtualDesktopInfo : public QObject
public:
explicit VirtualDesktopInfo(QObject *parent = nullptr);
virtual ~VirtualDesktopInfo();
~VirtualDesktopInfo() override;
/**
* The currently active virtual desktop.
......
......@@ -55,7 +55,7 @@ class TASKMANAGER_EXPORT WaylandTasksModel : public AbstractWindowTasksModel
public:
explicit WaylandTasksModel(QObject *parent = nullptr);
virtual ~WaylandTasksModel();
~WaylandTasksModel() override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
......
......@@ -46,7 +46,7 @@ class TASKMANAGER_EXPORT WindowTasksModel : public QIdentityProxyModel, public A
public:
explicit WindowTasksModel(QObject *parent = nullptr);
virtual ~WindowTasksModel();
~WindowTasksModel() override;
QHash<int, QByteArray> roleNames() const override;
......
......@@ -53,7 +53,7 @@ class TASKMANAGER_EXPORT XWindowTasksModel : public AbstractWindowTasksModel
public:
explicit XWindowTasksModel(QObject *parent = nullptr);
virtual ~XWindowTasksModel();
~XWindowTasksModel() override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
......
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