Commit 6ad07459 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use more override

parent d944cffe
......@@ -39,7 +39,7 @@ class AppMenuModel : public QAbstractListModel, public QAbstractNativeEventFilte
public:
explicit AppMenuModel(QObject *parent = nullptr);
~AppMenuModel();
~AppMenuModel() override;
enum AppMenuRole {
MenuRole = Qt::UserRole+1,
......
......@@ -34,7 +34,7 @@ Q_PROPERTY(bool dragActive READ dragActive NOTIFY dragActiveChanged)
public:
explicit DragHelper(QObject *parent = nullptr);
~DragHelper();
~DragHelper() override;
bool dragActive() const;
......
......@@ -38,7 +38,7 @@ Q_SIGNALS:
void dataReady(const Plasma::DataEngine::Data& data);
protected:
virtual void run();
void run() override;
private:
gps_data_t* m_gpsdata;
......@@ -52,9 +52,9 @@ class Gps : public GeolocationProvider
Q_OBJECT
public:
explicit Gps(QObject *parent = 0, const QVariantList &args = QVariantList());
~Gps();
~Gps() override;
void update();
void update() override;
private:
Gpsd* m_gpsd;
......
......@@ -32,7 +32,7 @@ class Actions : public QObject
public:
Actions(const QString &serviceName, const QString &objectPath, QObject *parent = nullptr);
~Actions();
~Actions() override;
void load();
......
......@@ -32,7 +32,7 @@ class Menu : public QObject
public:
Menu(const QString &serviceName, const QString &objectPath, QObject *parent = nullptr);
~Menu();
~Menu() override;
void init();
void cleanup();
......
......@@ -45,7 +45,7 @@ class Window : public QObject, protected QDBusContext
public:
Window(const QString &serviceName);
~Window();
~Window() override;
void init();
......
......@@ -42,7 +42,7 @@ class Greeter : public QObject
Q_OBJECT
public:
Greeter(int fd, bool shutdownAllowed, bool choose, KWorkSpace::ShutdownType type);
virtual ~Greeter();
~Greeter() override;
void init();
......
......@@ -32,7 +32,7 @@ class kwin_dbus : public QObject
public:
kwin_dbus();
~kwin_dbus();
~kwin_dbus() override;
bool registerDBus();
bool unregisterDBus();
......
......@@ -104,7 +104,7 @@ public:
Q_ENUMS(Mode)
explicit CompositorAdaptor(QObject *parent = nullptr);
virtual ~CompositorAdaptor() = default;
~CompositorAdaptor() override = default;
int error() const {
return (int)m_error;
......
......@@ -29,7 +29,7 @@ class ColorCorrectPlugin : public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
virtual void registerTypes(const char *uri);
void registerTypes(const char *uri) override;
};
}
......
......@@ -39,7 +39,7 @@ class COLORCORRECT_EXPORT Geolocator : public QObject, public Plasma::DataEngine
public:
explicit Geolocator(QObject *parent = nullptr);
virtual ~Geolocator() = default;
~Geolocator() override = default;
double latitude() const {
return m_latitude;
......
......@@ -278,7 +278,7 @@ public:
* regard to extracting information from this, and should take care to
* reject invalid objects.
**/
virtual void requestPublishDelegateGeometry(const QModelIndex &index, const QRect &geometry,
void requestPublishDelegateGeometry(const QModelIndex &index, const QRect &geometry,
QObject *delegate = nullptr) override;
};
......
......@@ -42,7 +42,7 @@ namespace TaskManager
class TASKMANAGER_EXPORT AbstractTasksProxyModelIface : public AbstractTasksModelIface
{
public:
~AbstractTasksProxyModelIface() {}
~AbstractTasksProxyModelIface() override {}
/**
* Request activation of the task at the given index. Implementing classes
......
......@@ -734,7 +734,7 @@ public:
* @param index An index in this tasks model.
* @param activities The new list of activities.
**/
Q_INVOKABLE virtual void requestActivities(const QModelIndex &index, const QStringList &activities) override;
Q_INVOKABLE void requestActivities(const QModelIndex &index, const QStringList &activities) override;
/**
* Request informing the window manager of new geometry for a visual
......
......@@ -34,7 +34,7 @@ class HolidaysEventsPlugin : public CalendarEvents::CalendarEventsPlugin
public:
explicit HolidaysEventsPlugin(QObject *parent = nullptr);
~HolidaysEventsPlugin();
~HolidaysEventsPlugin() override;
void loadEventsForDateRange(const QDate &startDate, const QDate &endDate) override;
......
......@@ -31,7 +31,7 @@ Q_OBJECT
public:
InstallerRunner(QObject *parent, const QVariantList &args);
~InstallerRunner();
~InstallerRunner() override;
void match(Plasma::RunnerContext &context) override;
void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &action) override;
......
......@@ -30,7 +30,7 @@ class QalculateEngine : public QObject
Q_OBJECT
public:
QalculateEngine(QObject* parent = nullptr);
~QalculateEngine();
~QalculateEngine() override;
QString lastResult() const { return m_lastResult; }
......
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