Commit e8d42621 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Run clang modernize-use-override fixit

parent 28b33f08
......@@ -61,7 +61,7 @@ class AutoPasteModel : public QAbstractTableModel
};
explicit AutoPasteModel(QObject *parent = 0);
~AutoPasteModel();
~AutoPasteModel() override;
int rowCount(const QModelIndex &index = QModelIndex()) const override;
int columnCount(const QModelIndex &index = QModelIndex()) const override;
......
......@@ -25,7 +25,7 @@ class DlgWebinterface : public QWidget, public Ui::DlgWebinterface
public:
DlgWebinterface(QDialog *parent = nullptr);
~DlgWebinterface();
~DlgWebinterface() override;
signals:
void changed();
......
......@@ -33,7 +33,7 @@ class IntegrationPreferences : public QWidget
public:
explicit IntegrationPreferences(KConfigDialog *parent, Qt::WindowFlags f = Qt::Widget);
~IntegrationPreferences();
~IntegrationPreferences() override;
private slots:
void slotUpdateButtons();
......
......@@ -19,7 +19,7 @@ class PluginSelector : public KPluginSelector
Q_OBJECT
public:
PluginSelector(QDialog * parent);
~PluginSelector();
~PluginSelector() override;
private slots:
void saveState();
......
......@@ -30,7 +30,7 @@ class PreferencesDialog : public KConfigDialog
void slotToggleAfterFinishAction(int state);
void disableApplyButton();
void enableApplyButton();
virtual void updateWidgetsDefault() override;
void updateWidgetsDefault() override;
private:
Ui::DlgAdvanced dlgAdv;
......
......@@ -37,7 +37,7 @@ class KGET_EXPORT KGetSaveSizeDialog : public QDialog
* Restores the dialog to the size saved for name
*/
explicit KGetSaveSizeDialog(const QByteArray &name, QWidget *parent = nullptr, Qt::WindowFlags flags = {});
virtual ~KGetSaveSizeDialog();
~KGetSaveSizeDialog() override;
private:
QByteArray m_name;
......
......@@ -46,7 +46,7 @@ class KGET_EXPORT DataSourceFactory : public QObject
*/
explicit DataSourceFactory(QObject *parent, const QUrl &dest = QUrl(), KIO::filesize_t size = 0, KIO::fileoffset_t segSize = 512000);
~DataSourceFactory();
~DataSourceFactory() override;
/**
* The capabilities the DataSourceFactory supports
......
......@@ -25,7 +25,7 @@ class KGET_EXPORT Download : public QObject
Q_OBJECT
public:
Download(const QUrl &srcUrl, const QUrl &destUrl);
~Download();
~Download() override;
Q_SIGNALS:
void finishedSuccessfully(QUrl dest, QByteArray data);
......
......@@ -33,7 +33,7 @@ class FileDeleter::Private : QObject
Q_OBJECT
public:
Private();
~Private();
~Private() override;
KJob *deleteFile(const QUrl &dest, QObject *receiver, const char *method);
......
......@@ -106,7 +106,7 @@ class KGET_EXPORT FileModel : public QAbstractItemModel
public:
FileModel(const QList<QUrl> &files, const QUrl &destDirectory, QObject *parent = nullptr);
~FileModel();
~FileModel() override;
QVariant data(const QModelIndex &index, int role) const override;
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override;
......
......@@ -19,7 +19,7 @@ class Handler : public QObject
Q_OBJECT
public:
Handler(Scheduler * scheduler, QObject * parent);
virtual ~Handler();
~Handler() override;
virtual void start() = 0;
virtual void stop() = 0;
......
......@@ -77,7 +77,7 @@ class KGET_EXPORT Job : public QObject
ErrorType type;
};
Job(Scheduler * scheduler, JobQueue * parent);
virtual ~Job();
~Job() override;
//Job commands
virtual void start()=0;
......
......@@ -38,7 +38,7 @@ class KGET_EXPORT JobQueue : public QObject
typedef QList<Job *>::iterator iterator;
JobQueue(Scheduler * parent);
virtual ~JobQueue();
~JobQueue() override;
/**
* Sets the JobQueue status
......
......@@ -468,7 +468,7 @@ class GenericObserver : public QObject
Q_OBJECT
public:
GenericObserver(QObject *parent = nullptr);
virtual ~GenericObserver ();
~GenericObserver () override;
public slots:
void groupAddedEvent(TransferGroupHandler *handler);
......
......@@ -20,7 +20,7 @@ class KGetGlobalJob : public KJob
Q_OBJECT
public:
KGetGlobalJob(QObject *parent = nullptr);
~KGetGlobalJob();
~KGetGlobalJob() override;
void update();
......@@ -37,7 +37,7 @@ signals:
void requestStop(KJob *job, TransferHandler *handler);
protected:
virtual bool doKill() override;
bool doKill() override;
};
#endif
......@@ -25,7 +25,7 @@ class KGetKJobAdapter : public KJob
Q_OBJECT
public:
KGetKJobAdapter(QObject *parent, TransferHandler *transfer);
~KGetKJobAdapter();
~KGetKJobAdapter() override;
void start() override {};
......@@ -47,9 +47,9 @@ signals:
void requestResume(KJob *job, TransferHandler *handler);
protected:
virtual bool doKill() override;
virtual bool doSuspend() override;
virtual bool doResume() override;
bool doKill() override;
bool doSuspend() override;
bool doResume() override;
private:
TransferHandler *m_transferHandler;
......
......@@ -30,7 +30,7 @@ class KUiServerJobs : public QObject
Q_OBJECT
public:
KUiServerJobs(QObject *parent = nullptr);
~KUiServerJobs();
~KUiServerJobs() override;
void settingsChanged();
......
......@@ -28,7 +28,7 @@ Q_OBJECT
public:
LinkImporter(const QUrl &source, QObject *parent);
LinkImporter(QObject *parent);
~LinkImporter();
~LinkImporter() override;
/**
* Check for urls in clipboard
......
......@@ -57,7 +57,7 @@ class KGET_EXPORT MostLocalUrlJob : public KIO::Job
public:
MostLocalUrlJob(const QUrl &url);
virtual void start() override;
void start() override;
QUrl url();
/**
......@@ -66,7 +66,7 @@ class KGET_EXPORT MostLocalUrlJob : public KIO::Job
QUrl mostLocalUrl() const;
protected:
virtual void slotResult(KJob *job) override;
void slotResult(KJob *job) override;
private:
QUrl m_url;
......
......@@ -63,7 +63,7 @@ class KGET_EXPORT KGetPlugin : public QObject
Q_OBJECT
public:
KGetPlugin(QObject *parent, const QVariantList &args);
virtual ~KGetPlugin();
~KGetPlugin() override;
/*
// set and retrieve properties
......
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