use override everywhere

wilder-5.14
Laurent Montel 8 years ago
parent a9d70b3e24
commit d863086f67
  1. 2
      applets/appmenu/lib/appmenuapplet.h
  2. 6
      applets/appmenu/plugin/appmenumodel.h
  3. 2
      applets/notifications/lib/notificationsapplet.h
  4. 2
      applets/systemtray/systemtray.h
  5. 8
      applets/systemtray/tests/statusnotifier/pumpjob.h
  6. 4
      components/shellprivate/widgetexplorer/widgetexplorer.h
  7. 2
      ksmserver/shutdowndlg.h
  8. 2
      ksmserver/startup.cpp
  9. 30
      libtaskmanager/abstracttasksproxymodeliface.h
  10. 2
      libtaskmanager/concatenatetasksproxymodel.h
  11. 2
      libtaskmanager/declarative/taskmanagerplugin.h
  12. 2
      libtaskmanager/flattentaskgroupsproxymodel.h
  13. 2
      libtaskmanager/taskfilterproxymodel.h
  14. 2
      libtaskmanager/windowtasksmodel.h
  15. 2
      plasmacalendarintegration/holidaysevents.h
  16. 2
      plasmacalendarintegration/qmlhelper/holidayeventshelperplugin.h
  17. 4
      runners/powerdevil/PowerDevilRunner.h
  18. 4
      runners/sessions/sessionrunner.h
  19. 2
      shell/screenpool.h
  20. 2
      soliduiserver/deviceserviceaction.cpp
  21. 8
      wallpapers/image/backgroundlistmodel.h
  22. 2
      xembed-sni-proxy/fdoselectionmanager.h

@ -74,7 +74,7 @@ public slots:
void trigger(QQuickItem *ctx, int idx);
protected:
bool eventFilter(QObject *watched, QEvent *event) Q_DECL_OVERRIDE;
bool eventFilter(QObject *watched, QEvent *event) override;
private:
QMenu *createMenu(int idx) const;

@ -46,9 +46,9 @@ public:
ActionRole
};
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;
QVariant data(const QModelIndex &index, int role) const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
QHash<int, QByteArray> roleNames() const override;
void updateApplicationMenu(const QString &serviceName, const QString &menuObjectPath);

@ -46,7 +46,7 @@ public:
QRect availableScreenRect() const;
public Q_SLOTS:
void init() Q_DECL_OVERRIDE;
void init() override;
void onScreenPositionChanged(uint position);
void onAppletLocationChanged();

@ -42,7 +42,7 @@ public:
void init() override;
void restoreContents(KConfigGroup &group) Q_DECL_OVERRIDE;
void restoreContents(KConfigGroup &group) override;
void restorePlasmoids();
QStringList defaultPlasmoids() const;

@ -34,10 +34,10 @@ class PumpJob : public KIO::Job
PumpJob(int interval = 0);
virtual ~PumpJob();
void start() Q_DECL_OVERRIDE;
bool doKill() Q_DECL_OVERRIDE;
bool doSuspend() Q_DECL_OVERRIDE;
bool doResume() Q_DECL_OVERRIDE;
void start() override;
bool doKill() override;
bool doSuspend() override;
bool doResume() override;
virtual bool isSuspended() const;

@ -143,8 +143,8 @@ public:
*/
Q_INVOKABLE void uninstall(const QString &pluginName);
void classBegin() Q_DECL_OVERRIDE;
void componentComplete() Q_DECL_OVERRIDE;
void classBegin() override;
void componentComplete() override;
Q_SIGNALS:
void widgetsMenuActionsChanged();

@ -82,7 +82,7 @@ Q_SIGNALS:
void rejected();
protected:
void resizeEvent(QResizeEvent *e) Q_DECL_OVERRIDE;
void resizeEvent(QResizeEvent *e) override;
bool event(QEvent *e) override;
private:

@ -97,7 +97,7 @@ static QTime t;
class NotificationThread : public QThread
{
Q_OBJECT
void run() Q_DECL_OVERRIDE {
void run() override {
// We cannot parent to the thread itself so let's create
// a QObject on the stack and parent everythign to it
QObject parent;

@ -51,7 +51,7 @@ public:
*
* @param index An index in this tasks model.
**/
void requestActivate(const QModelIndex &index) Q_DECL_OVERRIDE;
void requestActivate(const QModelIndex &index) override;
/**
* Request an additional instance of the application backing the task
@ -59,7 +59,7 @@ public:
*
* @param index An index in this tasks model.
**/
void requestNewInstance(const QModelIndex &index) Q_DECL_OVERRIDE;
void requestNewInstance(const QModelIndex &index) override;
/**
* Requests to open the given URLs with the application backing the task
@ -68,14 +68,14 @@ public:
* @param index An index in this tasks model.
* @param urls The URLs to be passed to the application.
**/
virtual void requestOpenUrls(const QModelIndex &index, const QList<QUrl> &urls) Q_DECL_OVERRIDE;
virtual void requestOpenUrls(const QModelIndex &index, const QList<QUrl> &urls) override;
/**
* Request the task at the given index be closed.
*
* @param index An index in this tasks model.
**/
void requestClose(const QModelIndex &index) Q_DECL_OVERRIDE;
void requestClose(const QModelIndex &index) override;
/**
* Request starting an interactive move for the task at the given index.
@ -85,7 +85,7 @@ public:
*
* @param index An index in this tasks model.
**/
void requestMove(const QModelIndex &index) Q_DECL_OVERRIDE;
void requestMove(const QModelIndex &index) override;
/**
* Request starting an interactive resize for the task at the given index.
@ -95,7 +95,7 @@ public:
*
* @param index An index in this tasks model.
**/
void requestResize(const QModelIndex &index) Q_DECL_OVERRIDE;
void requestResize(const QModelIndex &index) override;
/**
* Request toggling the minimized state of the task at the given index.
@ -105,7 +105,7 @@ public:
*
* @param index An index in this tasks model.
**/
void requestToggleMinimized(const QModelIndex &index) Q_DECL_OVERRIDE;
void requestToggleMinimized(const QModelIndex &index) override;
/**
* Request toggling the maximized state of the task at the given index.
@ -115,7 +115,7 @@ public:
*
* @param index An index in this tasks model.
**/
void requestToggleMaximized(const QModelIndex &index) Q_DECL_OVERRIDE;
void requestToggleMaximized(const QModelIndex &index) override;
/**
* Request toggling the keep-above state of the task at the given index.
@ -125,7 +125,7 @@ public:
*
* @param index An index in this tasks model.
**/
void requestToggleKeepAbove(const QModelIndex &index) Q_DECL_OVERRIDE;
void requestToggleKeepAbove(const QModelIndex &index) override;
/**
* Request toggling the keep-below state of the task at the given index.
@ -135,7 +135,7 @@ public:
*
* @param index An index in this tasks model.
**/
void requestToggleKeepBelow(const QModelIndex &index) Q_DECL_OVERRIDE;
void requestToggleKeepBelow(const QModelIndex &index) override;
/**
* Request toggling the fullscreen state of the task at the given index.
@ -145,7 +145,7 @@ public:
*
* @param index An index in this tasks model.
**/
void requestToggleFullScreen(const QModelIndex &index) Q_DECL_OVERRIDE;
void requestToggleFullScreen(const QModelIndex &index) override;
/**
* Request toggling the shaded state of the task at the given index.
@ -155,7 +155,7 @@ public:
*
* @param index An index in this tasks model.
**/
void requestToggleShaded(const QModelIndex &index) Q_DECL_OVERRIDE;
void requestToggleShaded(const QModelIndex &index) override;
/**
* Request moving the task at the given index to the specified virtual
@ -167,7 +167,7 @@ public:
* @param index An index in this tasks model.
* @param desktop A virtual desktop number.
**/
void requestVirtualDesktop(const QModelIndex &index, qint32 desktop = -1) Q_DECL_OVERRIDE;
void requestVirtualDesktop(const QModelIndex &index, qint32 desktop = -1) override;
/**
* Request moving the task at the given index to the specified activities.
@ -178,7 +178,7 @@ public:
* @param index An index in this tasks model.
* @param activities The new list of activities.
**/
void requestActivities(const QModelIndex &index, const QStringList &activities) Q_DECL_OVERRIDE;
void requestActivities(const QModelIndex &index, const QStringList &activities) override;
/**
* Request informing the window manager of new geometry for a visual
@ -192,7 +192,7 @@ public:
* reject invalid objects.
**/
void requestPublishDelegateGeometry(const QModelIndex &index, const QRect &geometry,
QObject *delegate = nullptr) Q_DECL_OVERRIDE;
QObject *delegate = nullptr) override;
protected:
/*

@ -48,7 +48,7 @@ public:
explicit ConcatenateTasksProxyModel(QObject *parent = 0);
virtual ~ConcatenateTasksProxyModel();
protected:
QModelIndex mapIfaceToSource(const QModelIndex &index) const Q_DECL_OVERRIDE;
QModelIndex mapIfaceToSource(const QModelIndex &index) const override;
};
}

@ -33,7 +33,7 @@ class TaskManagerPlugin : 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;
};
}

@ -52,7 +52,7 @@ public:
void setSourceModel(QAbstractItemModel *sourceModel) override;
protected:
QModelIndex mapIfaceToSource(const QModelIndex &index) const Q_DECL_OVERRIDE;
QModelIndex mapIfaceToSource(const QModelIndex &index) const override;
private:
class Private;
QScopedPointer<Private> d;

@ -285,7 +285,7 @@ Q_SIGNALS:
protected:
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
QModelIndex mapIfaceToSource(const QModelIndex &index) const Q_DECL_OVERRIDE;
QModelIndex mapIfaceToSource(const QModelIndex &index) const override;
private:
class Private;

@ -51,7 +51,7 @@ public:
QHash<int, QByteArray> roleNames() const override;
protected:
QModelIndex mapIfaceToSource(const QModelIndex &index) const Q_DECL_OVERRIDE;
QModelIndex mapIfaceToSource(const QModelIndex &index) const override;
private:
class Private;
QScopedPointer<Private> d;

@ -36,7 +36,7 @@ public:
explicit HolidaysEventsPlugin(QObject *parent = nullptr);
~HolidaysEventsPlugin();
void loadEventsForDateRange(const QDate &startDate, const QDate &endDate) Q_DECL_OVERRIDE;
void loadEventsForDateRange(const QDate &startDate, const QDate &endDate) override;
private:
QDate m_lastStartDate;

@ -27,7 +27,7 @@ class HolidayEventsHelperPlugin : public QQmlExtensionPlugin
Q_OBJECT
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 // HOLIDAYEVENTSHELPERPLUGIN_H

@ -33,8 +33,8 @@ class PowerDevilRunner : public Plasma::AbstractRunner
PowerDevilRunner( QObject *parent, const QVariantList &args );
~PowerDevilRunner() override;
void match( Plasma::RunnerContext &context ) Q_DECL_OVERRIDE;
void run( const Plasma::RunnerContext &context, const Plasma::QueryMatch &action ) Q_DECL_OVERRIDE;
void match( Plasma::RunnerContext &context ) override;
void run( const Plasma::RunnerContext &context, const Plasma::QueryMatch &action ) override;
private Q_SLOTS:
void updateStatus();

@ -35,8 +35,8 @@ class SessionRunner : public Plasma::AbstractRunner
SessionRunner(QObject *parent, const QVariantList &args);
~SessionRunner() override;
void match(Plasma::RunnerContext &context) Q_DECL_OVERRIDE;
void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &action) Q_DECL_OVERRIDE;
void match(Plasma::RunnerContext &context) override;
void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &action) override;
enum { LogoutAction = 1, ShutdownAction, RestartAction, LockAction };

@ -53,7 +53,7 @@ public:
QList <int> knownIds() const;
protected:
bool nativeEventFilter(const QByteArray & eventType, void * message, long * result) Q_DECL_OVERRIDE;
bool nativeEventFilter(const QByteArray & eventType, void * message, long * result) override;
private:
void save();

@ -35,7 +35,7 @@ public:
: KMacroExpanderBase('%'), m_device(device) {}
protected:
int expandEscapedMacro(const QString &str, int pos, QStringList &ret) Q_DECL_OVERRIDE;
int expandEscapedMacro(const QString &str, int pos, QStringList &ret) override;
private:
Solid::Device m_device;

@ -76,10 +76,10 @@ public:
BackgroundListModel(Image *listener, QObject *parent);
~BackgroundListModel() override;
QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE ;
bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) Q_DECL_OVERRIDE;
QHash<int, QByteArray> roleNames() const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override ;
bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) override;
KPackage::Package package(int index) const;
void reload();

@ -39,7 +39,7 @@ public:
~FdoSelectionManager() override;
protected:
bool nativeEventFilter(const QByteArray & eventType, void * message, long * result) Q_DECL_OVERRIDE;
bool nativeEventFilter(const QByteArray & eventType, void * message, long * result) override;
private Q_SLOTS:
void onClaimedOwnership();

Loading…
Cancel
Save