Commit 6db543e7 authored by Albert Astals Cid's avatar Albert Astals Cid

Use clang-tidy to add missing override

/usr/share/clang/run-clang-tidy.py  -header-filter='.*' -checks='-*,modernize-use-override' -fix
parent db88a569
......@@ -38,7 +38,7 @@ public:
explicit HgBackoutDialog(QWidget *parent = 0);
public slots:
void done(int r);
void done(int r) override;
private slots:
void saveGeometry();
......
......@@ -45,7 +45,7 @@ public:
explicit HgBundleDialog(QWidget *parent=0);
public slots:
void done(int r);
void done(int r) override;
private slots:
void saveGeometry();
......
......@@ -63,7 +63,7 @@ private slots:
void slotUpdateCloneOutput();
private:
void done(int r);
void done(int r) override;
void browseDirectory(QLineEdit *dest);
void appendOptionArguments(QStringList &args);
......
......@@ -78,7 +78,7 @@ private slots:
private:
QString getParentForLabel();
void createCopyMessageMenu();
void done(int r);
void done(int r) override;
private:
QString m_hgBaseDir;
......
......@@ -34,8 +34,8 @@ class CommitItemDelegate : public QItemDelegate
public:
explicit CommitItemDelegate(QObject *parent = 0);
void paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index) const;
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
const QModelIndex &index) const override;
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
};
......
......@@ -37,7 +37,7 @@ class HgPluginSettingsWidget : public QWidget
public:
explicit HgPluginSettingsWidget(QWidget *parent = 0);
virtual ~HgPluginSettingsWidget();
~HgPluginSettingsWidget() override;
public slots:
void saveConfig();
......
......@@ -40,7 +40,7 @@ public:
explicit HgConfigDialog(HgConfig::ConfigType type, QWidget *parent = 0);
private:
void done(int r);
void done(int r) override;
// user interface
void setupUI();
......
......@@ -37,7 +37,7 @@ public:
explicit HgCreateDialog(const QString &directory, QWidget *parent = 0);
private:
void done(int r);
void done(int r) override;
void setWorkingDirectory(const QString &directory);
private:
......
......@@ -55,7 +55,7 @@ public:
QBoxLayout* layout() { return m_layout; }
protected:
virtual void keyReleaseEvent(QKeyEvent* event); // to handle CTRL+Enter shortcut to accept dialog
void keyReleaseEvent(QKeyEvent* event) override; // to handle CTRL+Enter shortcut to accept dialog
private:
QPushButton *m_okButton;
......
......@@ -41,7 +41,7 @@ public:
explicit HgExportDialog(QWidget *parent=0);
public slots:
void done(int r);
void done(int r) override;
private slots:
void saveGeometry();
......
......@@ -38,7 +38,7 @@ public:
explicit HgImportDialog(QWidget *parent=0);
public slots:
void done(int r);
void done(int r) override;
private slots:
void saveGeometry();
......
......@@ -35,7 +35,7 @@ class HgMergeDialog : public DialogBase
public:
explicit HgMergeDialog(QWidget *parent = 0);
void done(int r);
void done(int r) override;
private slots:
void saveGeometry();
......
......@@ -39,17 +39,17 @@ public:
explicit HgPullDialog(QWidget *parent = 0);
private:
void setOptions();
void parseUpdateChanges(const QString &input);
void appendOptionArguments(QStringList &args);
void createChangesGroup();
void getHgChangesArguments(QStringList &args);
void noChangesMessage();
void setOptions() override;
void parseUpdateChanges(const QString &input) override;
void appendOptionArguments(QStringList &args) override;
void createChangesGroup() override;
void getHgChangesArguments(QStringList &args) override;
void noChangesMessage() override;
private slots:
void slotUpdateChangesGeometry();
void readBigSize();
void writeBigSize();
void readBigSize() override;
void writeBigSize() override;
private:
// Options
......
......@@ -39,18 +39,18 @@ public:
explicit HgPushDialog(QWidget *parent = 0);
private:
void setOptions();
void createChangesGroup();
void parseUpdateChanges(const QString &input);
void appendOptionArguments(QStringList &args);
void getHgChangesArguments(QStringList &args);
void noChangesMessage();
void setOptions() override;
void createChangesGroup() override;
void parseUpdateChanges(const QString &input) override;
void appendOptionArguments(QStringList &args) override;
void getHgChangesArguments(QStringList &args) override;
void noChangesMessage() override;
private slots:
void slotOutSelChanged();
void slotUpdateChangesGeometry();
void readBigSize();
void writeBigSize();
void readBigSize() override;
void writeBigSize() override;
private:
// Options
......
......@@ -38,7 +38,7 @@ public:
explicit HgRenameDialog(const KFileItem &source, QWidget *parent = 0);
QString source() const;
QString destination() const;
void done(int r);
void done(int r) override;
private slots:
void slotTextChanged(const QString &text);
......
......@@ -42,7 +42,7 @@ class HgServeWrapper : public QObject
public:
explicit HgServeWrapper(QObject *parent=0);
~HgServeWrapper();
~HgServeWrapper() override;
/**
* Returns pointer to singleton instance of the wrapper. An instance is
......
......@@ -57,7 +57,7 @@ signals:
void changeListAvailable();
protected:
void done(int r);
void done(int r) override;
void setupUI();
void createOptionGroup();
void setup();
......
......@@ -42,7 +42,7 @@ public slots:
void slotUpdateDialog(int index);
private:
void done(int r);
void done(int r) override;
private:
enum {ToBranch, ToTag, ToRevision} m_updateTo;
......
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