Commit c15ce632 authored by Kevin Funk's avatar Kevin Funk

Modernize: Use override everywhere

parent a69ae0f7
......@@ -51,7 +51,7 @@ class Q_DECL_EXPORT SensorAgent : public QObject
public:
explicit SensorAgent( SensorManager *sm );
virtual ~SensorAgent();
~SensorAgent() override;
virtual bool start( const QString &host, const QString &shell,
const QString &command = QLatin1String(""), int port = -1 ) = 0;
......
......@@ -63,7 +63,7 @@ class Q_DECL_EXPORT SensorManager : public QObject
};
explicit SensorManager(QObject * parent = 0);
~SensorManager();
~SensorManager() override;
/*! Number of hosts connected to */
int count() const;
......
......@@ -51,7 +51,7 @@ class SensorShellAgent : public SensorAgent
public:
explicit SensorShellAgent( SensorManager *sm );
~SensorShellAgent();
~SensorShellAgent() override;
bool start( const QString &host, const QString &shell,
const QString &command = QLatin1String(QLatin1String("")), int port = -1 ) Q_DECL_OVERRIDE;
......
......@@ -46,7 +46,7 @@ class SensorSocketAgent : public SensorAgent
public:
explicit SensorSocketAgent( SensorManager *sm );
~SensorSocketAgent();
~SensorSocketAgent() override;
bool start( const QString &host, const QString &shell,
const QString &command = QLatin1String(""), int port = -1 ) Q_DECL_OVERRIDE;
......
......@@ -33,7 +33,7 @@ class Q_DECL_EXPORT KLsofWidget : public QTreeWidget {
Q_PROPERTY( qlonglong pid READ pid WRITE setPid )
public:
KLsofWidget(QWidget *parent = NULL);
~KLsofWidget();
~KLsofWidget() override;
bool update();
private Q_SLOTS:
......
......@@ -59,7 +59,7 @@ namespace KSysGuard
public:
Processes(const QString &hostname = QString::null, QObject * parent = 0);
virtual ~Processes();
~Processes() override;
enum UpdateFlag {
StandardInformation = 1,
IOStatistics = 2,
......
......@@ -39,7 +39,7 @@ namespace KSysGuard
class ProcessesATop : public AbstractProcesses {
public:
explicit ProcessesATop(bool loadDefaultFile = true);
virtual ~ProcessesATop();
~ProcessesATop() override;
QSet<long> getAllPids() Q_DECL_OVERRIDE;
long getParentPid(long pid) Q_DECL_OVERRIDE;
bool updateProcessInfo(long pid, Process *process) Q_DECL_OVERRIDE;
......
......@@ -45,7 +45,7 @@ namespace KSysGuard
public:
AbstractProcesses() { errorCode = Processes::Unknown; }
virtual ~AbstractProcesses() {}
~AbstractProcesses() override {}
/** \brief Get a set of the currently running process PIDs.
*
......
......@@ -38,7 +38,7 @@ namespace KSysGuard
class ProcessesLocal : public AbstractProcesses {
public:
ProcessesLocal();
virtual ~ProcessesLocal();
~ProcessesLocal() override;
QSet<long> getAllPids() Q_DECL_OVERRIDE;
long getParentPid(long pid) Q_DECL_OVERRIDE;
bool updateProcessInfo(long pid, Process *process) Q_DECL_OVERRIDE;
......
......@@ -33,7 +33,7 @@ namespace KSysGuard
Q_OBJECT
public:
ProcessesRemote(const QString &hostname);
virtual ~ProcessesRemote();
~ProcessesRemote() override;
QSet<long> getAllPids() Q_DECL_OVERRIDE;
long getParentPid(long pid) Q_DECL_OVERRIDE;
bool updateProcessInfo(long pid, Process *process) Q_DECL_OVERRIDE;
......
......@@ -45,7 +45,7 @@ class KSYSGUARD_EXPORT ProcessFilter : public QSortFilterProxyModel
public:
enum State {AllProcesses=0,AllProcessesInTreeForm, SystemProcesses, UserProcesses, OwnProcesses, ProgramsOnly};
ProcessFilter(QObject *parent=0) : QSortFilterProxyModel(parent) {mFilter = AllProcesses;}
virtual ~ProcessFilter() {}
~ProcessFilter() override {}
bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE;
State filter() const {return mFilter; }
......
......@@ -50,7 +50,7 @@ class KSYSGUARD_EXPORT ProcessModel : public QAbstractItemModel
public:
ProcessModel(QObject* parent = 0, const QString &host = QString() );
virtual ~ProcessModel();
~ProcessModel() override;
/* Functions for our Model for QAbstractItemModel*/
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
......
......@@ -65,7 +65,7 @@ class ProcessModelPrivate : public QObject
Q_OBJECT
public:
ProcessModelPrivate();
~ProcessModelPrivate();
~ProcessModelPrivate() override;
public Q_SLOTS:
#if HAVE_X11
......@@ -146,7 +146,7 @@ class ProcessModelPrivate : public QObject
void queryForAndUpdateAllXWindows();
#endif
#endif
virtual void timerEvent ( QTimerEvent * event ); ///< Call dataChanged() for all the processes in mPidsToUpdate
void timerEvent ( QTimerEvent * event ) override; ///< Call dataChanged() for all the processes in mPidsToUpdate
/** @see setIsLocalhost */
bool mIsLocalhost;
......
......@@ -60,7 +60,7 @@ class Q_DECL_EXPORT KSysGuardProcessList : public QWidget
public:
KSysGuardProcessList(QWidget* parent = NULL, const QString &hostName = QString());
virtual ~KSysGuardProcessList();
~KSysGuardProcessList() override;
QLineEdit *filterLineEdit() const;
QTreeView *treeView() const;
......
......@@ -90,7 +90,7 @@ class Q_DECL_EXPORT KGraphicsSignalPlotter : public QGraphicsWidget
public:
KGraphicsSignalPlotter( QGraphicsItem *parent = 0);
virtual ~KGraphicsSignalPlotter();
~KGraphicsSignalPlotter() override;
/** \brief Add a new line to the graph plotter, with the specified color.
*
......
......@@ -92,7 +92,7 @@ class Q_DECL_EXPORT KSignalPlotter : public QWidget
public:
KSignalPlotter( QWidget *parent = 0);
virtual ~KSignalPlotter();
~KSignalPlotter() override;
/** \brief Add a new line to the graph plotter, with the specified color.
*
......
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