Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 1a63f5eb authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECL_OVERRIDE

parent 90a2f5fd
......@@ -80,7 +80,7 @@ public slots:
void trigger(QQuickItem *ctx, int idx);
protected:
bool eventFilter(QObject *watched, QEvent *event);
bool eventFilter(QObject *watched, QEvent *event) Q_DECL_OVERRIDE;
private:
QMenu *createMenu(int idx) const;
......
......@@ -44,9 +44,9 @@ public:
ActionRole
};
QVariant data(const QModelIndex &index, int role) const;
int rowCount(const QModelIndex &parent = QModelIndex()) const;
QHash<int, QByteArray> roleNames() const;
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;
void updateApplicationMenu(const QString &serviceName, const QString &menuObjectPath);
......
......@@ -34,10 +34,10 @@ class PumpJob : public KIO::Job
PumpJob(int interval = 0);
virtual ~PumpJob();
virtual void start();
virtual bool doKill();
virtual bool doSuspend();
virtual bool doResume();
void start() Q_DECL_OVERRIDE;
bool doKill() Q_DECL_OVERRIDE;
bool doSuspend() Q_DECL_OVERRIDE;
bool doResume() Q_DECL_OVERRIDE;
virtual bool isSuspended() const;
......
......@@ -143,8 +143,8 @@ public:
*/
Q_INVOKABLE void uninstall(const QString &pluginName);
void classBegin();
void componentComplete();
void classBegin() Q_DECL_OVERRIDE;
void componentComplete() Q_DECL_OVERRIDE;
Q_SIGNALS:
void widgetsMenuActionsChanged();
......
......@@ -33,7 +33,7 @@ class TaskManagerPlugin : public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
virtual void registerTypes(const char *uri);
void registerTypes(const char *uri) Q_DECL_OVERRIDE;
};
}
......
......@@ -27,7 +27,7 @@ class HolidayEventsHelperPlugin : public QQmlExtensionPlugin
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
virtual void registerTypes(const char* uri);
void registerTypes(const char* uri) Q_DECL_OVERRIDE;
};
#endif // HOLIDAYEVENTSHELPERPLUGIN_H
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